uninstaller is set in builder file
This commit is contained in:
parent
4a7e467c60
commit
87e65dd368
@ -4,10 +4,10 @@
|
|||||||
; credits: http://www.opsi.org/en/credits/
|
; credits: http://www.opsi.org/en/credits/
|
||||||
|
|
||||||
|
|
||||||
Set $UninstallProgram32$ = $InstallDir32$ + "\unins000.exe"
|
Set $UninstallProgram32$ = $InstallDir32$ + "\" + $UninstallProg32$
|
||||||
Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini"
|
Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini"
|
||||||
|
|
||||||
Set $UninstallProgram64$ = $InstallDir64$ + "\unins000.exe"
|
Set $UninstallProgram64$ = $InstallDir64$ + "\" + $UninstallProg64$
|
||||||
Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini"
|
Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini"
|
||||||
|
|
||||||
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
||||||
@ -63,7 +63,7 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
|
|||||||
Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..."
|
Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..."
|
||||||
|
|
||||||
if FileExists($IniFile64$)
|
if FileExists($IniFile64$)
|
||||||
Set $UninstallProg64$ = GetValueFromInifile($IniFile32$,"X86_64","UninstallProg64","XXXXXXXX.exe")
|
Set $UninstallProg64$ = GetValueFromInifile($IniFile64$,"X86_64","UninstallProg64","XXXXXXXX.exe")
|
||||||
Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $UninstallProg64$
|
Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $UninstallProg64$
|
||||||
if FileExists($UninstallProgramOld64$)
|
if FileExists($UninstallProgramOld64$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
|
Loading…
Reference in New Issue
Block a user