dont check exit code

This commit is contained in:
Mario Fetka 2016-08-28 09:19:23 +02:00
parent ef39f3dd79
commit ba3854aa17
1 changed files with 6 additions and 3 deletions

View File

@ -13,25 +13,28 @@ if FileExists($IniFile$)
endif
Message "Uninstalling " + $ProductId$ + " " + $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " ..."
Dosbatch_uninstall
sub_check_exitcode
if FileExists($IniFile$)
Set $MsiIdOld$ = GetValueFromInifile($IniFile$,"X86","MsiId","{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}")
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiIdOld$ + "] DisplayName") = "")
comment "Old MSI id " + $MsiIdOld$ + " found in registry, starting msiexec to uninstall old version"
Dosbatch_uninstall
sub_check_exitcode
Winbatch_uninstall_msi_old
sub_check_exitcode
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"
Dosbatch_uninstall
sub_check_exitcode
Winbatch_uninstall_msi
sub_check_exitcode
endif
if FileExists($UninstallProgram$)
comment "Uninstall program found, starting uninstall"
Dosbatch_uninstall
sub_check_exitcode
Winbatch_uninstall /WaitforProcessending "Au_.exe" /Timeoutseconds 10
endif