← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3124: Generic installer: Added a test to check for the resources folder.

 

------------------------------------------------------------
revno: 3124
committer: Bjørnar Valbø <heia@xxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-03-22 15:24:37 +0100
message:
  Generic installer: Added a test to check for the resources folder.
modified:
  installers/src/bitrock/DHIS2_pginstaller_generic.xml


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'installers/src/bitrock/DHIS2_pginstaller_generic.xml'
--- installers/src/bitrock/DHIS2_pginstaller_generic.xml	2011-03-18 08:51:24 +0000
+++ installers/src/bitrock/DHIS2_pginstaller_generic.xml	2011-03-22 14:24:37 +0000
@@ -10,6 +10,48 @@
     <splashImage>../../resources/images/dhis2-splash-blue.png</splashImage>
     <allowLanguageSelection>1</allowLanguageSelection>
     <initializationActionList>
+        <setInstallerVariable>
+            <name>resourcesWarningIsShown</name>
+            <value>true</value>
+            <ruleList>
+                <fileExists>
+                    <negate>1</negate>
+                    <path>${installer_directory}\resources</path>
+                </fileExists>
+            </ruleList>
+        </setInstallerVariable>
+        <showWarning>
+            <text>Cannot find the resources folder. Make sure it exists alongside the installer (The installer is NOT supposed to be inside the resources folder). If the folder is still not found, the installation process will be aborted.</text>
+            <title>resources folder is missing</title>
+            <ruleList>
+                <fileExists>
+                    <negate>1</negate>
+                    <path>${installer_directory}\resources</path>
+                </fileExists>
+            </ruleList>
+        </showWarning>
+        <throwError>
+            <customErrorMessage>Could not find the resources folder.</customErrorMessage>
+            <text>Could not find the resources folder.</text>
+            <ruleList>
+                <fileExists>
+                    <negate>1</negate>
+                    <path>${installer_directory}\resources</path>
+                </fileExists>
+            </ruleList>
+        </throwError>
+        <showInfo>
+            <text>Thank you! The resources folder was located. The installation process will continue.</text>
+            <title>Thank you!</title>
+            <ruleList>
+                <fileExists>
+                    <path>${installer_directory}\resources</path>
+                </fileExists>
+                <isTrue>
+                    <value>${resourcesWarningIsShown}</value>
+                </isTrue>
+            </ruleList>
+        </showInfo>
         <registryFind>
             <dataPattern>Java(TM)*6*</dataPattern>
             <keyPattern>*</keyPattern>