Add Reboot for Broken Installers
This commit is contained in:
@@ -24,12 +24,14 @@ if FileExists($IniFile$)
|
||||
comment "Uninstall program found, starting uninstall"
|
||||
Winbatch_uninstall_old
|
||||
sub_check_exitcode
|
||||
;set $Reboot$="1"
|
||||
endif
|
||||
endif
|
||||
if FileExists($UninstallProgram$)
|
||||
comment "Uninstall program found, starting uninstall"
|
||||
Winbatch_uninstall
|
||||
sub_check_exitcode
|
||||
;set $Reboot$="1"
|
||||
endif
|
||||
|
||||
if FileExists($IniFile$)
|
||||
@@ -38,12 +40,14 @@ if FileExists($IniFile$)
|
||||
comment "Old MSI id " + $MsiIdOld$ + " found in registry, starting msiexec to uninstall old version"
|
||||
Winbatch_uninstall_msi_old
|
||||
sub_check_exitcode
|
||||
;set $Reboot$="1"
|
||||
endif
|
||||
endif
|
||||
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId$ + "] DisplayName") = "")
|
||||
comment "MSI id " + $MsiId$ + " found in registry, starting msiexec to uninstall"
|
||||
Winbatch_uninstall_msi
|
||||
sub_check_exitcode
|
||||
;set $Reboot$="1"
|
||||
endif
|
||||
|
||||
;comment "Kill Web Browser"
|
||||
@@ -58,6 +62,10 @@ Registry_uninstall /32Bit
|
||||
comment "Delete program shortcuts"
|
||||
LinkFolder_uninstall
|
||||
|
||||
if $Reboot$="1"
|
||||
ExitWindows /ImmediateReboot
|
||||
endif
|
||||
|
||||
[Winbatch_uninstall_old]
|
||||
; Choose one of the following examples as basis for program uninstall
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user