first check if uninstall prog is there if yes then replace putty.exe wit print.exe
This commit is contained in:
parent
6adc29335b
commit
7ec27d8559
@ -15,19 +15,21 @@ if FileExists($IniFile$)
|
||||
endif
|
||||
Message "Uninstalling " + $ProductId$ + " " + $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " ..."
|
||||
|
||||
Dosbatch_uninstall
|
||||
sub_check_exitcode
|
||||
|
||||
if FileExists($IniFile$)
|
||||
Set $UninstallProgramOld$ = GetValueFromInifile($IniFile$,"X86","UninstallProg","XXXXXXXX.exe")
|
||||
if FileExists($UninstallProgramOld$)
|
||||
comment "Uninstall program found, starting uninstall"
|
||||
Dosbatch_uninstall
|
||||
sub_check_exitcode
|
||||
Winbatch_uninstall_old
|
||||
sub_check_exitcode
|
||||
endif
|
||||
endif
|
||||
if FileExists($UninstallProgram$)
|
||||
comment "Uninstall program found, starting uninstall"
|
||||
Dosbatch_uninstall
|
||||
sub_check_exitcode
|
||||
Winbatch_uninstall
|
||||
sub_check_exitcode
|
||||
endif
|
||||
@ -45,7 +47,6 @@ LinkFolder_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 /Y "%System%\print.exe" "$InstallDir$\putty.exe"
|
||||
|
||||
|
||||
[Winbatch_uninstall_old]
|
||||
"$UninstallProgramOld$" /sp- /verysilent /norestart
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user