Wait for uninstall.exe to terminate

refs #11449
This commit is contained in:
Gunnar Beutner 2016-04-14 07:04:36 +02:00
parent 1c310c3f75
commit 2b796aba84
1 changed files with 6 additions and 2 deletions

View File

@ -137,10 +137,14 @@ static int UpgradeNSIS(void)
if (installPath.IsEmpty())
return 0;
if (!Utility::PathExists(installPath + "\\uninstall.exe"))
String uninstallerPath = installPath + "\\uninstall.exe";
if (!Utility::PathExists(uninstallerPath))
return 0;
ExecuteCommand(installPath + "\\uninstall.exe", "/S");
ExecuteCommand(uninstallerPath, "/S \"_?=" + installPath + "\"");
_unlink(uninstallerPath.CStr());
String dataPath = Utility::GetIcingaDataPath();