mirror of https://github.com/Icinga/icinga2.git
parent
1871bc9382
commit
fd16e2d7d6
|
@ -137,10 +137,14 @@ static int UpgradeNSIS(void)
|
||||||
if (installPath.IsEmpty())
|
if (installPath.IsEmpty())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!Utility::PathExists(installPath + "\\uninstall.exe"))
|
String uninstallerPath = installPath + "\\uninstall.exe";
|
||||||
|
|
||||||
|
if (!Utility::PathExists(uninstallerPath))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ExecuteCommand(installPath + "\\uninstall.exe", "/S");
|
ExecuteCommand(uninstallerPath, "/S \"_?=" + installPath + "\"");
|
||||||
|
|
||||||
|
_unlink(uninstallerPath.CStr());
|
||||||
|
|
||||||
String dataPath = Utility::GetIcingaDataPath();
|
String dataPath = Utility::GetIcingaDataPath();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue