Reboot required

This commit is contained in:
Mario Fetka 2015-07-28 14:00:05 +02:00
parent 6708cfa01c
commit 3ae8cc181a
3 changed files with 10 additions and 0 deletions

View File

@ -25,12 +25,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
comment "Delete files" comment "Delete files"
@ -54,12 +56,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
comment "Delete files" comment "Delete files"
@ -71,6 +75,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]
"$UninstallProgramOld32$" /x /s "$UninstallProgramOld32$" /x /s

View File

@ -24,6 +24,7 @@ DefVar $INST_architecture$
DefVar $OLD_VERSION$ DefVar $OLD_VERSION$
DefVar $OLD_CREATOR_TAG$ DefVar $OLD_CREATOR_TAG$
DefVar $OLD_RELEASE$ DefVar $OLD_RELEASE$
DefVar $Reboot$
Set $INST_SystemType$ = GetSystemType Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific") set $INST_architecture$ = GetProductProperty("install_architecture","system specific")

View File

@ -25,6 +25,7 @@ DefVar $INST_architecture$
DefVar $OLD_VERSION$ DefVar $OLD_VERSION$
DefVar $OLD_CREATOR_TAG$ DefVar $OLD_CREATOR_TAG$
DefVar $OLD_RELEASE$ DefVar $OLD_RELEASE$
DefVar $Reboot$
Set $INST_SystemType$ = GetSystemType Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific") set $INST_architecture$ = GetProductProperty("install_architecture","system specific")