correct silent uinstall

This commit is contained in:
Mario Fetka 2012-02-19 11:08:53 +01:00
parent a8d84ee818
commit 2974ff649e
1 changed files with 7 additions and 3 deletions

View File

@ -11,6 +11,8 @@ Message "Uninstalling " + $ProductId$ + " ..."
if FileExists($UninstallProgram$)
comment "Uninstall program found, starting uninstall"
Dosbatch_uninstall
sub_check_exitcode
Winbatch_uninstall
sub_check_exitcode
endif
@ -29,13 +31,14 @@ Registry_uninstall /32Bit
comment "Delete program shortcuts"
LinkFolder_uninstall
[Winbatch_uninstall]
[Dosbatch_uninstall]
; Choose one of the following examples as basis for program uninstall
;
; PuTTY 0.58+ uninstallers call 'putty -cleanup-during-uninstall' during uninstall. This causes a pop-up to appear which breaks the silent uninstall.
copy -s "%System%\print.exe" "$InstallDir$\putty.exe"
copy /Y "%System%\print.exe" "$InstallDir$\putty.exe"
[Winbatch_uninstall]
"$UninstallProgram$" /sp- /verysilent /norestart
delete -sf "$InstallDir$\"
[Winbatch_uninstall_msi]
msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress
@ -43,6 +46,7 @@ msiexec /x $MsiId$ /qb! REBOOT=ReallySuppress
[Files_uninstall]
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
;
delete -sf "$InstallDir$\"
[Registry_uninstall]
; Example of deleting a registry key: