readd reboot support
This commit is contained in:
parent
c78d196b1f
commit
3c3f8a0234
|
@ -136,3 +136,5 @@ DefVar $server_viewonlypassword_set$
|
||||||
Set $server_viewonlypassword_set$ = GetProductProperty("server_viewonlypassword_set", "0")
|
Set $server_viewonlypassword_set$ = GetProductProperty("server_viewonlypassword_set", "0")
|
||||||
DefVar $server_viewonlypassword_value_of$
|
DefVar $server_viewonlypassword_value_of$
|
||||||
Set $server_viewonlypassword_value_of$ = GetProductProperty("server_viewonlypassword_value_of", "")
|
Set $server_viewonlypassword_value_of$ = GetProductProperty("server_viewonlypassword_value_of", "")
|
||||||
|
|
||||||
|
DefVar $Reboot$
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
; Copyright (c) uib gmbh (www.uib.de)
|
; Copyright (c) uib gmbh (www.uib.de)
|
||||||
; This sourcecode is owned by uib gmbh
|
; This sourcecode is owned by uib gmbh
|
||||||
; and published under the Terms of the General Public License.
|
; and published under the Terms of the General Public License.
|
||||||
|
@ -26,12 +27,14 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_old_32
|
Winbatch_uninstall_old_32
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
|
set $Reboot$="1"
|
||||||
endif
|
endif
|
||||||
endif
|
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
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
|
set $Reboot$="1"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if FileExists($IniFile32$)
|
if FileExists($IniFile32$)
|
||||||
|
@ -70,12 +73,14 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_old_64
|
Winbatch_uninstall_old_64
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
|
set $Reboot$="1"
|
||||||
endif
|
endif
|
||||||
endif
|
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
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
|
set $Reboot$="1"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if FileExists($IniFile64$)
|
if FileExists($IniFile64$)
|
||||||
|
@ -102,6 +107,10 @@ endif
|
||||||
comment "Delete program shortcuts"
|
comment "Delete program shortcuts"
|
||||||
LinkFolder_uninstall
|
LinkFolder_uninstall
|
||||||
|
|
||||||
|
if $Reboot$="1"
|
||||||
|
ExitWindows /ImmediateReboot
|
||||||
|
endif
|
||||||
|
|
||||||
[Winbatch_uninstall_old_32]
|
[Winbatch_uninstall_old_32]
|
||||||
; === Inno Setup ========================================================================================
|
; === Inno Setup ========================================================================================
|
||||||
; "$UninstallProgramOld32$" /silent /norestart /SUPPRESSMSGBOXES /nocancel
|
; "$UninstallProgramOld32$" /silent /norestart /SUPPRESSMSGBOXES /nocancel
|
||||||
|
|
Loading…
Reference in New Issue