summary refs log tree commit diff stats
path: root/build
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-08-23 22:32:22 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-08-23 22:32:22 +0200
commit7bf6ac9aa7358140795d7a21948abe162ebe5f76 (patch)
tree1da293517232b306c8e8826d888959f50a7f6d40 /build
parent04329bc07b1c4ab8e4eeffb2278a70b315d7e20e (diff)
don't uninstall when portable install is performed
Diffstat (limited to 'build')
-rw-r--r--build/xchat-wdk.iss9
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;