correct old uninstaller handling

This commit is contained in:
Mario Fetka 2013-03-12 07:22:50 +01:00
parent 7ec27d8559
commit 3fa48452a6
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -6,6 +6,7 @@
[Actions]
requiredWinstVersion >= "4.11.2.6"
DefVar $UninstallProg$
DefVar $UninstallProgram$
DefVar $UninstallProgramOld$
DefVar $IniFile$

View File

@ -6,6 +6,7 @@
[Actions]
requiredWinstVersion >= "4.11.2.6"
DefVar $UninstallProg$
DefVar $UninstallProgram$
DefVar $UninstallProgramOld$
DefVar $IniFile$