force Reboot

This commit is contained in:
Mario Fetka 2013-09-06 04:12:09 +02:00
parent f02fd3415f
commit 2592571cd7
3 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,7 @@ if FileExists($IniFile$)
killtask "qdbus.exe"
Winbatch_uninstall_old /WaitforProcessending "Au_.exe" /Timeoutseconds 10
sub_check_exitcode
set $Reboot$="1"
endif
endif
if FileExists($UninstallProgram$)
@ -49,6 +50,7 @@ if FileExists($UninstallProgram$)
killtask "qdbus.exe"
Winbatch_uninstall /WaitforProcessending "Au_.exe" /Timeoutseconds 10
sub_check_exitcode
set $Reboot$="1"
endif
comment "Delete files"
@ -60,6 +62,10 @@ Registry_uninstall /32Bit
comment "Delete program shortcuts"
LinkFolder_uninstall
if $Reboot$="1"
ExitWindows /ImmediateReboot
endif
[Winbatch_uninstall_old]
"$UninstallProgramOld$" /S

View File

@ -18,6 +18,7 @@ DefVar $ExitCode$
DefVar $OLD_VERSION$
DefVar $OLD_CREATOR_TAG$
DefVar $OLD_RELEASE$
DefVar $Reboot$
Set $LogDir$ = "%SystemDrive%\tmp"

View File

@ -17,6 +17,7 @@ DefVar $InstallDir$
DefVar $OLD_VERSION$
DefVar $OLD_CREATOR_TAG$
DefVar $OLD_RELEASE$
DefVar $Reboot$
Set $LogDir$ = "%SystemDrive%\tmp"