1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.8.dtd">
|
---|
3 | <installer
|
---|
4 | ui="swing,text"
|
---|
5 | verbose="true"
|
---|
6 | debug="false"
|
---|
7 | lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
|
---|
8 | name="Greenstone@version@ Installer"
|
---|
9 | windowIcon="/resources/icon.png"
|
---|
10 | defaultImageResource="/resources/header.png"
|
---|
11 | minJavaVersion="1.4">
|
---|
12 |
|
---|
13 | <!-- select language page -->
|
---|
14 | <page type="input" name="language-selector" displayText="">
|
---|
15 | <comment name="language-selector-explanation"/>
|
---|
16 | <select property="language" defaultValue="en" displayText="" useAsLocale="true">
|
---|
17 | <option value="en" text="English"/>
|
---|
18 | <option value="fr" text="Français (French)"/>
|
---|
19 | <option value="es" text="Español (Spanish)"/>
|
---|
20 | <option value="de" text="Deutsch (German)"/>
|
---|
21 | <option value="ru" text="ÑÑÑÑкОй ÑзÑк (Russian)"/>
|
---|
22 | <option value="zh" text="äžæ (Chinese)"/>
|
---|
23 | <option value="ar" text="Arabic"/>
|
---|
24 | </select>
|
---|
25 | </page>
|
---|
26 |
|
---|
27 | <!-- intro page -->
|
---|
28 | <page type="input" name="intro" displayText="">
|
---|
29 | <comment name="welcome"/>
|
---|
30 | </page>
|
---|
31 |
|
---|
32 | <!-- licence page -->
|
---|
33 | <page type="license" name="license" resource="/LICENSE.txt" displayText="" />
|
---|
34 |
|
---|
35 | <!-- install destination page -->
|
---|
36 | <page type="input" name="destination" displayText="">
|
---|
37 |
|
---|
38 | <!-- if linux|mac -->
|
---|
39 | <directory property="installDir"
|
---|
40 | defaultValue="/usr/local/Greenstone,${env.HOME}/Greenstone"
|
---|
41 | create="true"
|
---|
42 | displayText=""
|
---|
43 | flagFile="_uninst"
|
---|
44 | flagFileExistsProperty="ISInstallDetected"
|
---|
45 | />
|
---|
46 | <!-- /if -->
|
---|
47 | <!-- if windows -->
|
---|
48 | <directory property="installDir"
|
---|
49 | defaultValue="C:\Program Files\Greenstone,${env.HOMEDRIVE}\${env.HOMEPATH}\Greenstone"
|
---|
50 | create="true"
|
---|
51 | displayText=""
|
---|
52 | flagFile="_uninst"
|
---|
53 | flagFileExistsProperty="ISInstallDetected"
|
---|
54 | />
|
---|
55 | <!-- /if -->
|
---|
56 |
|
---|
57 | </page>
|
---|
58 |
|
---|
59 | <!-- don't budge if installshield installation found -->
|
---|
60 | <page type="input" name="dontBudge" displayText="" ifProperty="(${ISInstallDetected}==true)" showNextButton="false">
|
---|
61 | <comment name="is-install-detected"/>
|
---|
62 | </page>
|
---|
63 |
|
---|
64 | <!-- components -->
|
---|
65 | <page type="input" name="selector" displayText="">
|
---|
66 | <comment name="choose-components"/>
|
---|
67 |
|
---|
68 | <!-- if linux|windows -->
|
---|
69 | <target
|
---|
70 | target="Initialising"
|
---|
71 | diskRequirement="x"
|
---|
72 | defaultValue="true"
|
---|
73 | displayText="x"
|
---|
74 | force="true"
|
---|
75 | hidden="true"/>
|
---|
76 | <!-- /if -->
|
---|
77 |
|
---|
78 | <target
|
---|
79 | target="Installing Core System"
|
---|
80 | diskRequirement="@component.size.core@"
|
---|
81 | displayText=""
|
---|
82 | defaultValue="true"
|
---|
83 | force="true"/>
|
---|
84 |
|
---|
85 | <target
|
---|
86 | target="Installing Apache Web Server"
|
---|
87 | diskRequirement="@component.size.httpd@"
|
---|
88 | displayText=""
|
---|
89 | defaultValue="true"/>
|
---|
90 |
|
---|
91 | <target
|
---|
92 | target="Installing ImageMagick"
|
---|
93 | diskRequirement="@component.size.imagemagick@"
|
---|
94 | defaultValue="true"
|
---|
95 | displayText=""/>
|
---|
96 |
|
---|
97 | <!-- if windows|mac -->
|
---|
98 | <target
|
---|
99 | target="Installing Ghostscript"
|
---|
100 | diskRequirement="@component.size.ghostscript@"
|
---|
101 | defaultValue="true"
|
---|
102 | displayText=""/>
|
---|
103 | <!-- /if -->
|
---|
104 |
|
---|
105 |
|
---|
106 | <!-- start cdrom -->
|
---|
107 | <!-- the size of this component has to be maintained manually as we can't
|
---|
108 | know at compile time how big the documented examples are -->
|
---|
109 | <target
|
---|
110 | target="Installing Documented Examples"
|
---|
111 | diskRequirement="108 MB"
|
---|
112 | defaultValue="true"
|
---|
113 | displayText=""/>
|
---|
114 | <!-- end cdrom -->
|
---|
115 |
|
---|
116 | <!-- if windows -->
|
---|
117 | <target
|
---|
118 | target="Installing Start Menu Shortcuts"
|
---|
119 | diskRequirement="~10 KB"
|
---|
120 | defaultValue="true"
|
---|
121 | displayText=""/>
|
---|
122 | <!-- /if -->
|
---|
123 |
|
---|
124 | </page>
|
---|
125 |
|
---|
126 | <!-- page to ask if we should enable admin pages -->
|
---|
127 | <page type="input" name="admin-pages" displayText="">
|
---|
128 | <comment name="admin-expl"/>
|
---|
129 | <comment name="admin-expl-2"/>
|
---|
130 | <comment name="admin-expl-3"/>
|
---|
131 | <checkbox property="enable.admin.pages" displayText="" defaultValue="false"/>
|
---|
132 | </page>
|
---|
133 |
|
---|
134 | <!-- only if they said yes above, set a password -->
|
---|
135 | <page type="input" name="admin-password" displayText="" ifProperty="(${enable.admin.pages}==true)" target="Configuring Administration Pages">
|
---|
136 | <comment name="admin-password-expl"/>
|
---|
137 | <validated property="admin.password" defaultValue="" displayText="" regex="^.{3,20}$"/>
|
---|
138 | </page>
|
---|
139 |
|
---|
140 | <!-- progress page -->
|
---|
141 | <page type="progress" name="progress" showTargets="true" displayText=""/>
|
---|
142 |
|
---|
143 | </installer>
|
---|