1 | <?xml version="1.0"?>
|
---|
2 | <!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.7.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"
|
---|
30 | verbose="false"
|
---|
31 | lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
|
---|
32 | name="Demo Installer"
|
---|
33 | windowIcon="/resources/gkmain_inv.png"
|
---|
34 | defaultImageResource="/resources/greens.png"
|
---|
35 | minJavaVersion="1.4">
|
---|
36 | <!-- each page element represents a page of the installer -->
|
---|
37 | <page
|
---|
38 | type="input"
|
---|
39 | name="intro"
|
---|
40 | displayText="Welcome to the example installer program"
|
---|
41 | imageResource="/resources/greens.png">
|
---|
42 | <comment
|
---|
43 | displayText="This is a demo install"
|
---|
44 | title="true"/>
|
---|
45 | <comment
|
---|
46 | displayText="The application installed is yer typical Hello World"
|
---|
47 | bold="true"/>
|
---|
48 | <comment
|
---|
49 | displayText="There is not much more to be said really."/>
|
---|
50 | </page>
|
---|
51 | <!-- type="license" shows a license page to click through -->
|
---|
52 | <page
|
---|
53 | type="license"
|
---|
54 | name="license"
|
---|
55 | displayText="License conditions"
|
---|
56 | resource="/resources/GPL.txt"
|
---|
57 | imageResource="/resources/rockstiles.png">
|
---|
58 | </page>
|
---|
59 | <!-- type="input" shows a list of editable options for the installer -->
|
---|
60 | <page
|
---|
61 | type="input"
|
---|
62 | name="properties"
|
---|
63 | displayText="Required install options">
|
---|
64 | <directory
|
---|
65 | property="installDir"
|
---|
66 | defaultValue="/usr/local/demoapp"
|
---|
67 | defaultValueWin="${env.ProgramFiles}\demoapp"
|
---|
68 | displayText="Select an installation directory"
|
---|
69 | create="true"/>
|
---|
70 | </page>
|
---|
71 | <page
|
---|
72 | type="input"
|
---|
73 | name="selector"
|
---|
74 | displayText="Components to install">
|
---|
75 | <comment
|
---|
76 | displayText="Choose the components you want to install"
|
---|
77 | bold="true"/>
|
---|
78 | <target
|
---|
79 | displayText="Core components"
|
---|
80 | target="default"
|
---|
81 | defaultValue="true"
|
---|
82 | force="true"/>
|
---|
83 | <target
|
---|
84 | displayText="Source code"
|
---|
85 | target="tgsrc"
|
---|
86 | defaultValue="false"/>
|
---|
87 | <target
|
---|
88 | displayText="Documentation"
|
---|
89 | target="tgdoc"
|
---|
90 | defaultValue="true"/>
|
---|
91 | </page>
|
---|
92 | <!-- These are some other input types -->
|
---|
93 | <page
|
---|
94 | type="input"
|
---|
95 | name="other-input-types"
|
---|
96 | displayText="Pointless install options">
|
---|
97 | <text
|
---|
98 | property="TextProperty"
|
---|
99 | defaultValue="blah blah"
|
---|
100 | displayText="Enter any text"/>
|
---|
101 | <checkbox
|
---|
102 | property="BooleanProperty"
|
---|
103 | displayText="Make a boolean decision"
|
---|
104 | defaultValue="true"
|
---|
105 | force="false"/>
|
---|
106 | <select
|
---|
107 | property="Colour"
|
---|
108 | defaultValue="#FF0000"
|
---|
109 | displayText="Choose the option"
|
---|
110 | explanatoryText="This field can be used on any input field to render further descriptive text">
|
---|
111 | <option text="Red" value="#FF0000"/>
|
---|
112 | <option text="Green" value="#00FF00"/>
|
---|
113 | <option text="Blue" value="#0000FF"/>
|
---|
114 | </select>
|
---|
115 | <file
|
---|
116 | property="SelectedFile"
|
---|
117 | defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
|
---|
118 | defaultValueWin="C:\autoexec.bat"
|
---|
119 | displayText="Select a file"
|
---|
120 | checkExists="false"/>
|
---|
121 | </page>
|
---|
122 | <!-- page type="progress" shows a progress page with the install button
|
---|
123 | Its target is set to cleanuptarget since it is the last page this target will be run last-->
|
---|
124 | <page
|
---|
125 | type="progress"
|
---|
126 | name="progress"
|
---|
127 | showTargets="true"
|
---|
128 | displayText="Installation progress"
|
---|
129 | target="cleanuptarget">
|
---|
130 | </page>
|
---|
131 | </installer>
|
---|
132 |
|
---|
133 |
|
---|