1 | <?xml version="1.0"?>
|
---|
2 | <!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.8.dtd">
|
---|
3 | <!--
|
---|
4 |
|
---|
5 | This is an example installer from which you can start a project
|
---|
6 | Edit this file to select the properties you want decided, at the end
|
---|
7 | of the installation screen the properties will be available in a file
|
---|
8 | in the current directory for your ant script
|
---|
9 |
|
---|
10 |
|
---|
11 | lookAndFeel="com.jgoodies.plaf.windows.ExtWindowsLookAndFeel" - not recommended since it is not linux compatible due to Micro$oft License restrictions
|
---|
12 |
|
---|
13 | lookAndFeel="net.sourceforge.mlf.metouia.MetouiaLookAndFeel" - good, and cross platform
|
---|
14 |
|
---|
15 | lookAndFeel="com.jgoodies.plaf.plastic.Plastic3DLookAndFeel" - good, and cross platform
|
---|
16 |
|
---|
17 | lookAndFeel="com.jgoodies.plaf.plastic.PlasticXPLookAndFeel" - good, and cross platform
|
---|
18 |
|
---|
19 | lookAndFeel="com.jgoodies.plaf.plastic.PlasticLookAndFeel" - good but flat, and cross platform
|
---|
20 | -->
|
---|
21 |
|
---|
22 | <!--
|
---|
23 |
|
---|
24 | defaultImageResource,windowIcon,resource and imageResource load from the classpath
|
---|
25 | the installer script should put the locations of these resources on the classpath
|
---|
26 |
|
---|
27 | -->
|
---|
28 | <installer
|
---|
29 | ui="swing,text,text-auto,swing-auto"
|
---|
30 | verbose="true"
|
---|
31 | debug="true"
|
---|
32 | lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
|
---|
33 | name="Demo Installer"
|
---|
34 | windowIcon="/resources/gkmain_inv.png"
|
---|
35 | defaultImageResource="/resources/greens.png"
|
---|
36 | minJavaVersion="1.4"
|
---|
37 | loadDefaults="prompt"
|
---|
38 | version="1.5">
|
---|
39 | <!-- each page element represents a page of the installer -->
|
---|
40 | <page
|
---|
41 | type="input"
|
---|
42 | name="intro"
|
---|
43 | displayText="Welcome to the example installer program"
|
---|
44 | imageResource="/resources/greens.png">
|
---|
45 | <comment
|
---|
46 | displayText="This is a demo install"
|
---|
47 | title="true"/>
|
---|
48 | <comment
|
---|
49 | displayText="The application installed is yer typical Hello World"
|
---|
50 | bold="true"/>
|
---|
51 | <comment
|
---|
52 | displayText="There is not much more to be said really."/>
|
---|
53 | </page>
|
---|
54 | <!-- type="license" shows a license page to click through -->
|
---|
55 | <page
|
---|
56 | type="license"
|
---|
57 | name="license"
|
---|
58 | displayText="License conditions"
|
---|
59 | resource="/resources/GPL.txt"
|
---|
60 | imageResource="/resources/rockstiles.png">
|
---|
61 | </page>
|
---|
62 | <!-- type="input" shows a list of editable options for the installer -->
|
---|
63 | <page
|
---|
64 | type="input"
|
---|
65 | name="properties"
|
---|
66 | displayText="Required install options">
|
---|
67 | <directory
|
---|
68 | property="installDir"
|
---|
69 | defaultValue="/usr/local/demoapp"
|
---|
70 | defaultValueWin="${env.ProgramFiles}\demoapp"
|
---|
71 | displayText="Select an installation directory"
|
---|
72 | create="true"/>
|
---|
73 | </page>
|
---|
74 | <page
|
---|
75 | type="input"
|
---|
76 | name="selector"
|
---|
77 | displayText="Components to install">
|
---|
78 | <comment
|
---|
79 | displayText="Choose the components you want to install"
|
---|
80 | bold="true"/>
|
---|
81 | <target
|
---|
82 | displayText="Core components"
|
---|
83 | target="default"
|
---|
84 | defaultValue="true"
|
---|
85 | force="true"/>
|
---|
86 | <target
|
---|
87 | displayText="Source code"
|
---|
88 | target="tgsrc"
|
---|
89 | defaultValue="false"/>
|
---|
90 | <target
|
---|
91 | displayText="Documentation"
|
---|
92 | target="tgdoc"
|
---|
93 | defaultValue="true"/>
|
---|
94 | </page>
|
---|
95 | <!-- These are some other input types -->
|
---|
96 | <page
|
---|
97 | type="input"
|
---|
98 | name="other-input-types"
|
---|
99 | displayText="Pointless install options"
|
---|
100 | overflow="true">
|
---|
101 | <text
|
---|
102 | property="myProperty"
|
---|
103 | defaultValue="blah blah"
|
---|
104 | displayText="Enter any text"/>
|
---|
105 | <checkbox
|
---|
106 | property="truefalseprop"
|
---|
107 | displayText="Make a boolean decision"
|
---|
108 | defaultValue="true"
|
---|
109 | force="false"/>
|
---|
110 | <select
|
---|
111 | property="colour"
|
---|
112 | defaultValue="#FF0000"
|
---|
113 | displayText="Choose the option"
|
---|
114 | explanatoryText="This field can be used on any input field to render further descriptive text
|
---|
115 | This field can be used on any input field to render further descriptive text">
|
---|
116 | <option text="Red" value="#FF0000"/>
|
---|
117 | <option text="Green" value="#00FF00"/>
|
---|
118 | <option text="Blue" value="#0000FF"/>
|
---|
119 | </select>
|
---|
120 | <target-select
|
---|
121 | property="tselect"
|
---|
122 | defaultValue="do-thing-one-tgt"
|
---|
123 | displayText="Choose the option"
|
---|
124 | explanatoryText="This field can be used on any input field to render further descriptive text
|
---|
125 | This field can be used on any input field to render further descriptive text">
|
---|
126 | <option text="Thing one" value="do-thing-one-tgt"/>
|
---|
127 | <option text="Thing two" value="do-thing-two-tgt"/>
|
---|
128 | <option text="Thing three" value="do-thing-three-tgt"/>
|
---|
129 | </target-select>
|
---|
130 | <file
|
---|
131 | property="selectedfile"
|
---|
132 | defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
|
---|
133 | defaultValueWin="C:\autoexec.bat"
|
---|
134 | displayText="Select a file"
|
---|
135 | checkExists="false"/>
|
---|
136 | </page>
|
---|
137 | <page
|
---|
138 | type="input"
|
---|
139 | name="if target test1"
|
---|
140 | displayText="extra display"
|
---|
141 | ifTarget="do-thing-one-tgt"
|
---|
142 | target="page-target-auto">
|
---|
143 | <comment
|
---|
144 | displayText="do-thing-ONE-tgt was selected"
|
---|
145 | bold="true"/>
|
---|
146 | </page>
|
---|
147 | <page
|
---|
148 | type="input"
|
---|
149 | name="if target test2"
|
---|
150 | displayText="extra display"
|
---|
151 | ifTarget="do-thing-two-tgt">
|
---|
152 | <comment
|
---|
153 | displayText="do-thing-TWO-tgt was selected"
|
---|
154 | bold="true"/>
|
---|
155 | </page>
|
---|
156 | <page
|
---|
157 | type="input"
|
---|
158 | name="if target test3"
|
---|
159 | displayText="extra display"
|
---|
160 | ifTarget="do-thing-three-tgt">
|
---|
161 | <comment
|
---|
162 | displayText="do-thing-THREE-tgt was selected"
|
---|
163 | bold="true"/>
|
---|
164 | </page>
|
---|
165 | <!-- page type="progress" shows a progress page with the install button it is a requirement for the final page-->
|
---|
166 | <page type="progress" name="progress" displayText="Installation progress" showTargets="true"/>
|
---|
167 | </installer>
|
---|
168 |
|
---|
169 |
|
---|