diff --git a/CLIENT_DATA/delsub32.ins b/CLIENT_DATA/delsub32.ins index 46ac27e..3f86435 100644 --- a/CLIENT_DATA/delsub32.ins +++ b/CLIENT_DATA/delsub32.ins @@ -4,7 +4,6 @@ ; credits: http://www.opsi.org/en/credits/ -Set $UninstallProgramOld$ = $InstallDir$ + "\" + $UninstallProg$ Set $UninstallProgram$ = $InstallDir$ + "\unins000.exe" Set $IniFile$ = $InstallDir$ + "\opsi-" + $ProductId$ + ".ini" @@ -17,7 +16,8 @@ Message "Uninstalling " + $ProductId$ + " " + $OLD_VERSION$ + "-" + $OLD_CREATOR if FileExists($IniFile$) - Set $UninstallProgramOld$ = GetValueFromInifile($IniFile$,"X86","UninstallProg","XXXXXXXX.exe") + Set $UninstallProg$ = GetValueFromInifile($IniFile$,"X86","UninstallProg","XXXXXXXX.exe") + Set $UninstallProgramOld$ = $InstallDir$ + "\" + $UninstallProg$ if FileExists($UninstallProgramOld$) comment "Uninstall program found, starting uninstall" Dosbatch_uninstall diff --git a/CLIENT_DATA/setup32.ins b/CLIENT_DATA/setup32.ins index ce68d4b..42c25e9 100644 --- a/CLIENT_DATA/setup32.ins +++ b/CLIENT_DATA/setup32.ins @@ -6,6 +6,7 @@ [Actions] requiredWinstVersion >= "4.11.2.6" +DefVar $UninstallProg$ DefVar $UninstallProgram$ DefVar $UninstallProgramOld$ DefVar $IniFile$ diff --git a/CLIENT_DATA/uninstall32.ins b/CLIENT_DATA/uninstall32.ins index d35d4ca..23e4437 100644 --- a/CLIENT_DATA/uninstall32.ins +++ b/CLIENT_DATA/uninstall32.ins @@ -6,6 +6,7 @@ [Actions] requiredWinstVersion >= "4.11.2.6" +DefVar $UninstallProg$ DefVar $UninstallProgram$ DefVar $UninstallProgramOld$ DefVar $IniFile$