mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-07 20:25:08 +02:00
parent
1c310c3f75
commit
2b796aba84
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user