From 3ae8cc181ac333661e939719a02a1b70ee27c0a9 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Tue, 28 Jul 2015 14:00:05 +0200 Subject: [PATCH] Reboot required --- CLIENT_DATA/delsub3264.ins | 8 ++++++++ CLIENT_DATA/setup3264.ins | 1 + CLIENT_DATA/uninstall3264.ins | 1 + 3 files changed, 10 insertions(+) diff --git a/CLIENT_DATA/delsub3264.ins b/CLIENT_DATA/delsub3264.ins index 20e2647..473617d 100644 --- a/CLIENT_DATA/delsub3264.ins +++ b/CLIENT_DATA/delsub3264.ins @@ -25,12 +25,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 comment "Delete files" @@ -54,12 +56,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 comment "Delete files" @@ -71,6 +75,10 @@ endif comment "Delete program shortcuts" LinkFolder_uninstall +if $Reboot$="1" + ExitWindows /ImmediateReboot +endif + [Winbatch_uninstall_old_32] "$UninstallProgramOld32$" /x /s diff --git a/CLIENT_DATA/setup3264.ins b/CLIENT_DATA/setup3264.ins index d226c72..efb3b9b 100644 --- a/CLIENT_DATA/setup3264.ins +++ b/CLIENT_DATA/setup3264.ins @@ -24,6 +24,7 @@ DefVar $INST_architecture$ DefVar $OLD_VERSION$ DefVar $OLD_CREATOR_TAG$ DefVar $OLD_RELEASE$ +DefVar $Reboot$ Set $INST_SystemType$ = GetSystemType set $INST_architecture$ = GetProductProperty("install_architecture","system specific") diff --git a/CLIENT_DATA/uninstall3264.ins b/CLIENT_DATA/uninstall3264.ins index 783df94..b838349 100644 --- a/CLIENT_DATA/uninstall3264.ins +++ b/CLIENT_DATA/uninstall3264.ins @@ -25,6 +25,7 @@ DefVar $INST_architecture$ DefVar $OLD_VERSION$ DefVar $OLD_CREATOR_TAG$ DefVar $OLD_RELEASE$ +DefVar $Reboot$ Set $INST_SystemType$ = GetSystemType set $INST_architecture$ = GetProductProperty("install_architecture","system specific")