readd reboot support

This commit is contained in:
Mario Fetka 2013-08-16 20:02:22 +02:00
parent c78d196b1f
commit 3c3f8a0234
2 changed files with 11 additions and 0 deletions

View File

@ -136,3 +136,5 @@ DefVar $server_viewonlypassword_set$
Set $server_viewonlypassword_set$ = GetProductProperty("server_viewonlypassword_set", "0")
DefVar $server_viewonlypassword_value_of$
Set $server_viewonlypassword_value_of$ = GetProductProperty("server_viewonlypassword_value_of", "")
DefVar $Reboot$

View File

@ -1,3 +1,4 @@
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib gmbh
; 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"
Winbatch_uninstall_old_32
sub_check_exitcode
set $Reboot$="1"
endif
endif
if FileExists($UninstallProgram32$)
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_32
sub_check_exitcode
set $Reboot$="1"
endif
if FileExists($IniFile32$)
@ -70,12 +73,14 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_old_64
sub_check_exitcode
set $Reboot$="1"
endif
endif
if FileExists($UninstallProgram64$)
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_64
sub_check_exitcode
set $Reboot$="1"
endif
if FileExists($IniFile64$)
@ -102,6 +107,10 @@ endif
comment "Delete program shortcuts"
LinkFolder_uninstall
if $Reboot$="1"
ExitWindows /ImmediateReboot
endif
[Winbatch_uninstall_old_32]
; === Inno Setup ========================================================================================
; "$UninstallProgramOld32$" /silent /norestart /SUPPRESSMSGBOXES /nocancel