changeset 2468:7d66c0fb4d59 0.5.7

Installer: check for an existing installation and rename old config files
author Stefan Stammberger <fusion44>
date Sun, 05 May 2013 10:44:02 +0200
parents f736befe4d91
children 9db1bd7841a1
files Sumwars_installer_bitrock.xml
diffstat 1 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Sumwars_installer_bitrock.xml	Sun May 05 08:47:58 2013 +0200
+++ b/Sumwars_installer_bitrock.xml	Sun May 05 10:44:02 2013 +0200
@@ -251,6 +251,22 @@
             </startMenuShortcutList>
         </component>
     </componentList>
+    <preInstallationActionList>
+        <renameFile>
+            <destination>${env(USERPROFILE)}/.sumwars/plugins.old</destination>
+            <origin>${env(USERPROFILE)}/.sumwars/plugins.cfg</origin>
+            <ruleList>
+                <fileExists path="${env(USERPROFILE)}/.sumwars/plugins.cfg"/>
+            </ruleList>
+        </renameFile>
+        <renameFile>
+            <destination>${env(USERPROFILE)}/.sumwars/resources.old</destination>
+            <origin>${env(USERPROFILE)}/.sumwars/resources.cfg</origin>
+            <ruleList>
+                <fileExists path="${env(USERPROFILE)}/.sumwars/resources.cfg"/>
+            </ruleList>
+        </renameFile>
+    </preInstallationActionList>
     <readyToInstallActionList>
         <componentSelection>
             <deselect>oalruntime</deselect>
@@ -269,7 +285,7 @@
     </readyToInstallActionList>
     <preUninstallationActionList>
         <showQuestion text="Do you want the uninstallation to also remove your saved games?" variable="remove_mysql">
-            <default>yes</default>
+            <default>no</default>
         </showQuestion>
         <deleteFile>
             <path>${env(USERPROFILE)}/.sumwars</path>