Commit 5aa58a0d authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-30374 Windows, MSI - do not cache error, if install directory changes.

If installation directory is not empty, MSI would shows a popup informing
user about it. The error message is stored as MSI property
INSTALLDIRERROR.

Fixed the bug that the error was not cleared, when the user changes
directory in installer UI.
parent 56c9b0bc
...@@ -202,7 +202,11 @@ extern "C" UINT __stdcall CheckInstallDirectory(MSIHANDLE hInstall) ...@@ -202,7 +202,11 @@ extern "C" UINT __stdcall CheckInstallDirectory(MSIHANDLE hInstall)
swprintf(msg,countof(msg), L"Installation directory '%s' exists and is not empty. Choose a " swprintf(msg,countof(msg), L"Installation directory '%s' exists and is not empty. Choose a "
"different install directory",path); "different install directory",path);
WcaSetProperty(L"INSTALLDIRERROR", msg); WcaSetProperty(L"INSTALLDIRERROR", msg);
goto LExit;
} }
WcaSetProperty(L"INSTALLDIRERROR", L"");
LExit: LExit:
ReleaseStr(path); ReleaseStr(path);
return WcaFinalize(er); return WcaFinalize(er);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment