From 7ec27d8559d6a67fe1a4b6b82912ce7a75ceff4d Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 10 Mar 2013 21:00:56 +0100 Subject: [PATCH] first check if uninstall prog is there if yes then replace putty.exe wit print.exe --- CLIENT_DATA/delsub32.ins | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CLIENT_DATA/delsub32.ins b/CLIENT_DATA/delsub32.ins index b0f179d..46ac27e 100644 --- a/CLIENT_DATA/delsub32.ins +++ b/CLIENT_DATA/delsub32.ins @@ -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