diff --git a/CLIENT_DATA/delsub32.ins b/CLIENT_DATA/delsub32.ins index 056a4b7..25053f1 100644 --- a/CLIENT_DATA/delsub32.ins +++ b/CLIENT_DATA/delsub32.ins @@ -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