From 7bf6ac9aa7358140795d7a21948abe162ebe5f76 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Mon, 23 Aug 2010 22:32:22 +0200 Subject: [PATCH] don't uninstall when portable install is performed --- build/xchat-wdk.iss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/xchat-wdk.iss b/build/xchat-wdk.iss index 22f28b60..d2fc4990 100644 --- a/build/xchat-wdk.iss +++ b/build/xchat-wdk.iss @@ -225,11 +225,14 @@ end; ///////////////////////////////////////////////////////////////////// procedure CurStepChanged(CurStep: TSetupStep); begin - if (CurStep=ssInstall) then + if not (IsTaskSelected('portablemode')) then begin - if (IsUpgrade()) then + if (CurStep=ssInstall) then begin - UnInstallOldVersion(); + if (IsUpgrade()) then + begin + UnInstallOldVersion(); + end; end; end; end;