From 4c5993c0206320ad879193d7f65a0782bb829966 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Thu, 27 Jun 2013 18:58:45 +0200 Subject: [PATCH] only reboot if uninstall was done --- CLIENT_DATA/delsub3264.ins | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CLIENT_DATA/delsub3264.ins b/CLIENT_DATA/delsub3264.ins index 8063eac..f1ad273 100644 --- a/CLIENT_DATA/delsub3264.ins +++ b/CLIENT_DATA/delsub3264.ins @@ -25,12 +25,18 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif comment "Uninstall program found, starting uninstall" Winbatch_uninstall_old_32 /WaitforProcessending "Au_.exe" /Timeoutseconds 100 sub_check_exitcode + + comment "uninstall done now force Reboot" + ExitWindows /ImmediateReboot endif endif if FileExists($UninstallProgram32$) comment "Uninstall program found, starting uninstall" Winbatch_uninstall_32 /WaitforProcessending "Au_.exe" /Timeoutseconds 100 sub_check_exitcode + + comment "uninstall done now force Reboot" + ExitWindows /ImmediateReboot endif comment "Delete files" @@ -38,8 +44,6 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif comment "Cleanup registry" Registry_uninstall /32Bit - comment "uninstall done now force Reboot" - ExitWindows /ImmediateReboot endif if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))