[19253] | 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 | <installer
|
---|
| 5 | ui="swing,text"
|
---|
| 6 | verbose="true"
|
---|
| 7 | debug="true"
|
---|
| 8 | lookAndFeel="jgoodies"
|
---|
| 9 | name="Demo Installer"
|
---|
| 10 | windowIcon="/resources/gkmain_inv.png"
|
---|
| 11 | defaultImageResource="/resources/greens.png"
|
---|
| 12 | minJavaVersion="1.4">
|
---|
| 13 | <!-- each page element represents a page of the installer -->
|
---|
| 14 | <page
|
---|
| 15 | type="input"
|
---|
| 16 | name="intro"
|
---|
| 17 | displayText="Welcome to the example installer program"
|
---|
| 18 | imageResource="/resources/greens.png">
|
---|
| 19 | <comment
|
---|
| 20 | displayText="This is a demo install"
|
---|
| 21 | title="true"/>
|
---|
| 22 | <comment
|
---|
| 23 | displayText="The application installed is yer typical Hello World"
|
---|
| 24 | bold="true"/>
|
---|
| 25 | <comment
|
---|
| 26 | displayText="There is not much more to be said really."/>
|
---|
| 27 | </page>
|
---|
| 28 | <!-- type="license" shows a license page to click through -->
|
---|
| 29 | <page
|
---|
| 30 | type="license"
|
---|
| 31 | name="license"
|
---|
| 32 | displayText="License conditions"
|
---|
| 33 | resource="/resources/GPL.txt"
|
---|
| 34 | imageResource="/resources/rockstiles.png">
|
---|
| 35 | </page>
|
---|
| 36 | <!-- type="input" shows a list of editable options for the installer -->
|
---|
| 37 | <page
|
---|
| 38 | type="input"
|
---|
| 39 | name="properties"
|
---|
| 40 | displayText="Required install options">
|
---|
| 41 | <directory
|
---|
| 42 | property="installDir"
|
---|
| 43 | defaultValue="/usr/local/demoapp"
|
---|
| 44 | defaultValueWin="${env.ProgramFiles}\demoapp"
|
---|
| 45 | displayText="Select an installation directory"
|
---|
| 46 | create="true"/>
|
---|
| 47 | </page>
|
---|
| 48 | <page
|
---|
| 49 | type="input"
|
---|
| 50 | name="selector"
|
---|
| 51 | displayText="Components to install">
|
---|
| 52 | <comment
|
---|
| 53 | displayText="Choose the components you want to install"
|
---|
| 54 | bold="true"/>
|
---|
| 55 | <target
|
---|
| 56 | displayText="Core components"
|
---|
| 57 | target="default"
|
---|
| 58 | defaultValue="true"
|
---|
| 59 | force="true"/>
|
---|
| 60 | <target
|
---|
| 61 | displayText="Source code"
|
---|
| 62 | target="tgsrc"
|
---|
| 63 | defaultValue="false"/>
|
---|
| 64 | <target
|
---|
| 65 | displayText="Documentation"
|
---|
| 66 | target="tgdoc"
|
---|
| 67 | defaultValue="true"/>
|
---|
| 68 | </page>
|
---|
| 69 | <!-- These are some other input types -->
|
---|
| 70 | <page
|
---|
| 71 | type="input"
|
---|
| 72 | name="other-input-types"
|
---|
| 73 | displayText="Pointless install options">
|
---|
| 74 | <text
|
---|
| 75 | property="myProperty"
|
---|
| 76 | defaultValue="blah blah"
|
---|
| 77 | displayText="Enter any text"/>
|
---|
| 78 | <checkbox
|
---|
| 79 | property="truefalseprop"
|
---|
| 80 | displayText="Make a boolean decision"
|
---|
| 81 | defaultValue="true"
|
---|
| 82 | force="false"/>
|
---|
| 83 | <select
|
---|
| 84 | property="colour"
|
---|
| 85 | defaultValue="#FF0000"
|
---|
| 86 | displayText="Choose the option"
|
---|
| 87 | explanatoryText="This field can be used on any input field to render further descriptive text
|
---|
| 88 | This field can be used on any input field to render further descriptive text">
|
---|
| 89 | <option text="Red" value="#FF0000"/>
|
---|
| 90 | <option text="Green" value="#00FF00"/>
|
---|
| 91 | <option text="Blue" value="#0000FF"/>
|
---|
| 92 | </select>
|
---|
| 93 | <file
|
---|
| 94 | property="selectedfile"
|
---|
| 95 | defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
|
---|
| 96 | defaultValueWin="C:\autoexec.bat"
|
---|
| 97 | displayText="Select a file"
|
---|
| 98 | checkExists="false"/>
|
---|
| 99 | </page>
|
---|
| 100 | <!-- page type="progress" shows a progress page with the install button
|
---|
| 101 | Its target is set to cleanuptarget since it is the last page this target will be run last-->
|
---|
| 102 | <page
|
---|
| 103 | type="progress"
|
---|
| 104 | name="progress"
|
---|
| 105 | displayText="Installation progress"
|
---|
| 106 | showTargets="false"
|
---|
| 107 | target="cleanuptarget">
|
---|
| 108 | </page>
|
---|
| 109 | </installer>
|
---|
| 110 |
|
---|
| 111 |
|
---|