diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2010-08-23 22:32:22 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2010-08-23 22:32:22 +0200 |
commit | 7bf6ac9aa7358140795d7a21948abe162ebe5f76 (patch) | |
tree | 1da293517232b306c8e8826d888959f50a7f6d40 | |
parent | 04329bc07b1c4ab8e4eeffb2278a70b315d7e20e (diff) |
don't uninstall when portable install is performed
-rw-r--r-- | build/xchat-wdk.iss | 9 |
1 files 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; |