Add support for old version
This commit is contained in:
parent
e4d9b98e79
commit
b0b9e3260b
@ -4,6 +4,10 @@
|
|||||||
; credits: http://www.opsi.org/credits/
|
; credits: http://www.opsi.org/credits/
|
||||||
|
|
||||||
|
|
||||||
|
Set $OldUninstallProgram32$ = $OldInstallDir32$ + "\uninstgs.exe"
|
||||||
|
|
||||||
|
Set $OldUninstallProgram64$ = $OldInstallDir64$ + "\uninstgs.exe"
|
||||||
|
|
||||||
Set $UninstallProgram32$ = $InstallDir32$ + "\uninstgs.exe"
|
Set $UninstallProgram32$ = $InstallDir32$ + "\uninstgs.exe"
|
||||||
|
|
||||||
Set $UninstallProgram64$ = $InstallDir64$ + "\uninstgs.exe"
|
Set $UninstallProgram64$ = $InstallDir64$ + "\uninstgs.exe"
|
||||||
@ -11,6 +15,12 @@ Set $UninstallProgram64$ = $InstallDir64$ + "\uninstgs.exe"
|
|||||||
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")
|
||||||
Message "Uninstalling " + $ProductId$ + " 32 Bit..."
|
Message "Uninstalling " + $ProductId$ + " 32 Bit..."
|
||||||
|
|
||||||
|
if FileExists($OldUninstallProgram32$)
|
||||||
|
comment "Uninstall program found, starting uninstall"
|
||||||
|
Winbatch_uninstall_32_old
|
||||||
|
sub_check_exitcode
|
||||||
|
endif
|
||||||
|
|
||||||
if FileExists($UninstallProgram32$)
|
if FileExists($UninstallProgram32$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_32
|
Winbatch_uninstall_32
|
||||||
@ -26,6 +36,12 @@ endif
|
|||||||
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||||
Message "Uninstalling " + $ProductId$ + " 64 Bit..."
|
Message "Uninstalling " + $ProductId$ + " 64 Bit..."
|
||||||
|
|
||||||
|
if FileExists($OldUninstallProgram64$)
|
||||||
|
comment "Uninstall program found, starting uninstall"
|
||||||
|
Winbatch_uninstall_64_old
|
||||||
|
sub_check_exitcode
|
||||||
|
endif
|
||||||
|
|
||||||
if FileExists($UninstallProgram64$)
|
if FileExists($UninstallProgram64$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_64
|
Winbatch_uninstall_64
|
||||||
@ -41,6 +57,9 @@ endif
|
|||||||
comment "Delete program shortcuts"
|
comment "Delete program shortcuts"
|
||||||
LinkFolder_uninstall
|
LinkFolder_uninstall
|
||||||
|
|
||||||
|
[Winbatch_uninstall_32_old]
|
||||||
|
"$OldUninstallProgram32$" /S
|
||||||
|
|
||||||
[Winbatch_uninstall_32]
|
[Winbatch_uninstall_32]
|
||||||
"$UninstallProgram32$" /S
|
"$UninstallProgram32$" /S
|
||||||
|
|
||||||
@ -49,6 +68,9 @@ LinkFolder_uninstall
|
|||||||
;
|
;
|
||||||
; delete -sf "$InstallDir32$\"
|
; delete -sf "$InstallDir32$\"
|
||||||
|
|
||||||
|
[Winbatch_uninstall_64_old]
|
||||||
|
"$OldUninstallProgram64$" /S
|
||||||
|
|
||||||
[Winbatch_uninstall_64]
|
[Winbatch_uninstall_64]
|
||||||
"$UninstallProgram64$" /S
|
"$UninstallProgram64$" /S
|
||||||
|
|
||||||
|
@ -6,11 +6,15 @@
|
|||||||
[Actions]
|
[Actions]
|
||||||
requiredWinstVersion >= "4.10.8.6"
|
requiredWinstVersion >= "4.10.8.6"
|
||||||
|
|
||||||
|
DefVar $OldUninstallProgram32$
|
||||||
|
DefVar $OldUninstallProgram64$
|
||||||
DefVar $UninstallProgram32$
|
DefVar $UninstallProgram32$
|
||||||
DefVar $UninstallProgram64$
|
DefVar $UninstallProgram64$
|
||||||
DefVar $LogDir$
|
DefVar $LogDir$
|
||||||
DefVar $ProductId$
|
DefVar $ProductId$
|
||||||
DefVar $MinimumSpace$
|
DefVar $MinimumSpace$
|
||||||
|
DefVar $OldInstallDir32$
|
||||||
|
DefVar $OldInstallDir64$
|
||||||
DefVar $InstallDir32$
|
DefVar $InstallDir32$
|
||||||
DefVar $InstallDir64$
|
DefVar $InstallDir64$
|
||||||
DefVar $ExitCode$
|
DefVar $ExitCode$
|
||||||
@ -44,6 +48,8 @@ Set $MinimumSpace$ = "30 MB"
|
|||||||
; the path were we find the product after the installation
|
; the path were we find the product after the installation
|
||||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\gs\gs" + $VERSION$
|
Set $InstallDir32$ = "%ProgramFiles32Dir%\gs\gs" + $VERSION$
|
||||||
Set $InstallDir64$ = "%ProgramFiles64Dir%\gs\gs" + $VERSION$
|
Set $InstallDir64$ = "%ProgramFiles64Dir%\gs\gs" + $VERSION$
|
||||||
|
Set $OldInstallDir32$ = "%ProgramFiles32Dir%\gs\gs" + $OLDVERSION$
|
||||||
|
Set $OldInstallDir64$ = "%ProgramFiles64Dir%\gs\gs" + $OLDVERSION$
|
||||||
; ----------------------------------------------------------------
|
; ----------------------------------------------------------------
|
||||||
|
|
||||||
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
||||||
|
@ -6,11 +6,15 @@
|
|||||||
[Actions]
|
[Actions]
|
||||||
requiredWinstVersion >= "4.10.8.6"
|
requiredWinstVersion >= "4.10.8.6"
|
||||||
|
|
||||||
|
DefVar $OldUninstallProgram32$
|
||||||
|
DefVar $OldUninstallProgram64$
|
||||||
DefVar $UninstallProgram32$
|
DefVar $UninstallProgram32$
|
||||||
DefVar $UninstallProgram64$
|
DefVar $UninstallProgram64$
|
||||||
DefVar $LogDir$
|
DefVar $LogDir$
|
||||||
DefVar $ExitCode$
|
DefVar $ExitCode$
|
||||||
DefVar $ProductId$
|
DefVar $ProductId$
|
||||||
|
DefVar $OldInstallDir32$
|
||||||
|
DefVar $OldInstallDir64$
|
||||||
DefVar $InstallDir32$
|
DefVar $InstallDir32$
|
||||||
DefVar $InstallDir64$
|
DefVar $InstallDir64$
|
||||||
DefVar $INST_SystemType$
|
DefVar $INST_SystemType$
|
||||||
@ -38,6 +42,8 @@ Set $LogDir$ = "%SystemDrive%\tmp"
|
|||||||
Set $ProductId$ = "ghostscript"
|
Set $ProductId$ = "ghostscript"
|
||||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\gs\gs" + $VERSION$
|
Set $InstallDir32$ = "%ProgramFiles32Dir%\gs\gs" + $VERSION$
|
||||||
Set $InstallDir64$ = "%ProgramFiles64Dir%\gs\gs" + $VERSION$
|
Set $InstallDir64$ = "%ProgramFiles64Dir%\gs\gs" + $VERSION$
|
||||||
|
Set $OldInstallDir32$ = "%ProgramFiles32Dir%\gs\gs" + $OLDVERSION$
|
||||||
|
Set $OldInstallDir64$ = "%ProgramFiles64Dir%\gs\gs" + $OLDVERSION$
|
||||||
; ----------------------------------------------------------------
|
; ----------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,3 +28,5 @@ DL_WINST_NAME[2]=Install64Exe
|
|||||||
# File array index for the image showing while installing the program
|
# File array index for the image showing while installing the program
|
||||||
ICON_DL_INDEX=0
|
ICON_DL_INDEX=0
|
||||||
|
|
||||||
|
WINST_NAME[1]="OLDVERSION"
|
||||||
|
WINST_VALUE[1]="9.04"
|
Loading…
Reference in New Issue
Block a user