source: installer/install.xml @ cc16834

i2p-0.8.12
Last change on this file since cc16834 was cc16834, checked in by zzz <zzz@…>, 9 years ago

0.8.12

  • Property mode set to 100644
File size: 13.9 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
2
3<installation version="1.0">
4
5    <info>
6        <appname>i2p</appname>
7        <appversion>0.8.12</appversion>
8        <authors>
9            <author name="I2P" email="http://forum.i2p2.de/"/>
10        </authors>
11        <url>http://www.i2p2.de/</url>
12        <javaversion>1.5</javaversion>
13
14        <!-- use pack200 compression, saves about 33%
15             see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
16             Unpack fails on java 1.5
17             see http://jira.codehaus.org/browse/IZPACK-404
18             <pack200 />
19         -->
20
21        <!-- adding this element will make the installer attempt to launch itself with administrator permissions,
22             but see http://www.nabble.com/Classpath-security-issues-on-Vista-td22456230.html
23             which says it isn't sufficient:
24
25                Just to let you know that I managed to identify and resolve the problem (in
26                case anyone else has it).  The default installation directory for Vista is
27                under "Program Files" which is a "special" directory which can only be
28                written to (create sub-directories) by administrators.  However, stupid
29                Vista downgrades an administrator to a normal user when the program is run
30                via the application shortcut menu.  As you suggested, I added a script which
31                runs ICACLS which resolved the problem, i.e.
32
33                icacls %1 /grant Users:F /T > priv.log
34
35                The command needs to be run as a Process rather than as an executable tag in
36                order to pass $INSTALL_PATH as a parameter.
37         -->
38        <run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/>
39    </info>
40
41    <guiprefs width="590" height="356" resizable="yes">
42        <laf name="liquid">
43            <os family="unix"/>
44        </laf>
45        <!-- full names, not iso3 codes -->
46        <modifier key="langDisplayType" value="native" />
47    </guiprefs>
48
49    <locale>
50        <langpack iso3="eng"/>
51        <langpack iso3="cat"/>
52        <langpack iso3="chn"/>
53        <langpack iso3="cze"/>
54        <langpack iso3="dan"/>
55        <langpack iso3="deu"/>
56        <langpack iso3="ell"/>
57        <langpack iso3="fa"/>
58        <langpack iso3="fin"/>
59        <langpack iso3="fra"/>
60        <langpack iso3="glg"/>
61        <langpack iso3="hun"/>
62        <langpack iso3="ind"/>
63        <langpack iso3="ita"/>
64        <langpack iso3="jpn"/>
65        <langpack iso3="kor"/>
66        <langpack iso3="mys"/>
67        <langpack iso3="ned"/>
68        <langpack iso3="nor"/>
69        <langpack iso3="pol"/>
70        <langpack iso3="por"/>
71        <langpack iso3="rom"/>
72        <langpack iso3="rus"/>
73        <langpack iso3="scg"/>
74        <langpack iso3="spa"/>
75        <langpack iso3="svk"/>
76        <langpack iso3="swe"/>
77        <langpack iso3="tur"/>
78        <langpack iso3="twn"/>
79        <langpack iso3="ukr"/>
80    </locale>
81
82    <!--
83        The <os> tag can be used to restrict the inclusion into the uninstaller
84        to a specific operating system family, architecture or version.
85        The inclusion into the installer will be always done.
86        Here's a sample :
87
88        <native type="izpack" name="ShellLink.dll">
89            <os family="windows"/>
90        </native>
91
92        This doesn't appear to be necessary, the dlls don't get put in Uninstaller/uninstaller.jar on linux
93     -->
94    <native type="izpack" name="ShellLink.dll" />
95    <native type="izpack" name="ShellLink_x64.dll" />
96
97    <resources>
98        <res id="Installer.image" src="installer/resources/i2plogo.png" />
99        <res id="InfoPanel.info" src="installer/resources/readme.license.txt"/>
100        <!-- <res id="ProcessPanel.Spec.xml" src="installer/resources/ProcessPanel.Spec.xml"/> -->
101        <res id="shortcutSpec.xml" src="installer/resources/shortcutSpec.xml" />
102        <res id="XInfoPanel.info" src="installer/resources/start-i2p.txt" />
103    </resources>
104
105    <panels>
106        <panel classname="HelloPanel"/>
107        <panel classname="InfoPanel"/>
108        <panel classname="PacksPanel"><os family="windows" /></panel>
109        <panel classname="TargetPanel"/>
110        <panel classname="ShortcutPanel"><os family="windows" /></panel>
111        <panel classname="InstallPanel"/>
112        <!-- <panel classname="ProcessPanel"><os family="windows" /></panel> -->
113        <!-- unix|mac doesn't work, displays for windows too -->
114
115        <!-- Unfortunately unix is used for osx as well, so the XInfoPanel was shown *twice*
116             on OSX. Using the condition this way, the panel is shown on everything
117             *but* Windows.
118             -->
119        <panel classname="XInfoPanel" condition="!izpack.windowsinstall" />
120        <!--<panel classname="XInfoPanel" ><os family="unix" /></panel> -->
121        <!--<panel classname="XInfoPanel" ><os family="mac" /></panel>  -->
122        <panel classname="SimpleFinishPanel"/>
123    </panels>
124
125    <packs>
126        <pack name="Base" required="yes">
127            <description>Base installation files</description>
128            <fileset dir="pkg-temp" includes="**/*" targetdir="$INSTALL_PATH"/>
129            <!--
130              Do variable substitution in these files. See:
131              http://www.javalobby.org/forums/thread.jspa?threadID=15967&tstart=0
132              and the izpack docs for some guidance.
133             -->
134            <parsable targetfile="$INSTALL_PATH/wrapper.config" type="plain" />
135            <parsable targetfile="$INSTALL_PATH/i2prouter" type="shell" os="unix|mac" />
136            <parsable targetfile="$INSTALL_PATH/eepget" type="shell" os="unix|mac" />
137            <parsable targetfile="$INSTALL_PATH/eepget.bat" type="shell" os="windows" />
138            <parsable targetfile="$INSTALL_PATH/runplain.sh" type="shell" os="unix|mac" />
139            <parsable targetfile="$INSTALL_PATH/Start I2P Router.app/Contents/MacOS/i2prouter" type="shell" os="mac" />
140           
141            <conditions>
142                <condition type="variable" id="is64bit">
143                    <name>SYSTEM_sun_arch_data_model</name>
144                    <value>64</value>
145                </condition>
146            </conditions>
147            <!-- postinstall stuff for windows -->
148            <!-- Wrapper for 32bit Windows JVM -->
149            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"
150                condition="!is64bit"> <os family="windows" />
151                <args><arg value="$INSTALL_PATH\lib\wrapper\win32\I2Psvc.exe" /><arg value="$INSTALL_PATH" /></args></executable>
152            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"
153                condition="!is64bit"> <os family="windows" />
154                <args><arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.dll" /><arg value="$INSTALL_PATH\lib" /></args></executable>
155            <!-- wrapper for 64bit Windows JVM -->
156            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"
157                condition="is64bit" > <os family="windows" />
158                <args><arg value="$INSTALL_PATH\lib\wrapper\win64\I2Psvc.exe" /><arg value="$INSTALL_PATH" /></args></executable>
159            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"
160                condition="is64bit" > <os family="windows" />
161                <args><arg value="$INSTALL_PATH\lib\wrapper\win64\wrapper.dll" /><arg value="$INSTALL_PATH\lib" /></args></executable>
162             <!-- We still copy the 32 bit version of wrapper.dll (even with a
163                  64bit jvm) so that if a 32 bit jvm is installed in the
164                  future, nothing breaks.
165                  -->
166             <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"
167                condition="is64bit" > <os family="windows" />
168                <args><arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.dll" /><arg value="$INSTALL_PATH\lib\wrapper-windows-x86-32.dll" /></args></executable>
169            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
170                <args><arg value="$INSTALL_PATH\i2prouter" /></args></executable>
171            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
172                <args><arg value="$INSTALL_PATH\install_i2p_service_unix" /></args></executable>
173            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
174                <args><arg value="$INSTALL_PATH\install-headless.txt" /></args></executable>
175            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
176                <args><arg value="$INSTALL_PATH\runplain.sh" /></args></executable>
177            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
178                <args><arg value="$INSTALL_PATH\osid" /></args></executable>
179            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
180                <args><arg value="$INSTALL_PATH\postinstall.sh" /></args></executable>
181            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
182                <args><arg value="$INSTALL_PATH\uninstall_i2p_service_unix" /></args></executable>
183            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
184                <args><arg value="$INSTALL_PATH\lib\wrapper" /></args></executable>
185            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
186                <args><arg value="$INSTALL_PATH\eepget" /></args></executable>
187            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
188                <args><arg value="$INSTALL_PATH/Start I2P Router.app" /></args></executable>
189            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
190                <args><arg value="$INSTALL_PATH/man" /></args></executable>
191            <!-- Placeholder for an OSX 'shortcut' to the router console
192            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
193                <args><arg value="$INSTALL_PATH/I2P Router Console.webloc" /></args></executable>
194                -->
195            <!-- workaround for bad default path for wrapper.log in Windows. -->
196            <executable targetfile="$INSTALL_PATH/fixpaths.cmd" type="bin" stage="postinstall" keep="false"> <os family="windows" /> 
197            </executable>
198
199            <!-- workaround for vista permission problems - see comments above -->
200            <executable targetfile="$INSTALL_PATH/fixperms.bat" type="bin" stage="postinstall" keep="true" failure="warn"
201                condition="izpack.windowsinstall.vista|izpack.windowsinstall.7" >
202                <args><arg value="$INSTALL_PATH" /></args>
203            </executable>
204            <!-- else delete it -->
205            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"
206                condition="izpack.windowsinstall.xp|izpack.windowsinstall.2003" >
207                <args><arg value="$INSTALL_PATH\fixperms.bat" /></args>
208            </executable>
209
210            <!--
211            <executable targetfile="$INSTALL_PATH/installer/exec.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
212                <args><arg value="$INSTALL_PATH" /><arg value="$INSTALL_PATH\I2Psvc.exe" /><arg value="-c" /><arg value="$INSTALL_PATH\wrapper.config" /></args></executable>
213            -->
214               
215            <!-- postinstall stuff for *nix -->
216            <!-- stage=never means chmod a+x -->
217            <executable targetfile="$INSTALL_PATH/postinstall.sh" type="bin" stage="never" keep="true" failure="warn"><os family="unix" /></executable>
218            <executable targetfile="$INSTALL_PATH/postinstall.sh" type="bin" stage="postinstall" keep="true" failure="warn"><os family="unix" />
219                <args><arg value="$INSTALL_PATH" /></args></executable>
220            <!--
221             Removal of the I2P service in Windows should be done in the base pack
222             so that even if a user installed the service manually it will still be
223             removed when uninstalling.
224            -->
225            <executable targetfile="$INSTALL_PATH/uninstall_i2p_service_winnt.bat" stage="uninstall" os="windows">
226                <args>
227                    <arg value="$INSTALL_PATH\wrapper.config" />
228                    <arg value="--nopause" />
229                </args>
230            </executable>
231
232            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="false" failure="warn"> <os family="windows" />
233                    <args><arg value="$INSTALL_PATH/installer/" /></args></executable>
234
235        </pack>
236
237        <!-- to disable by default, add preselected="no" -->
238        <pack name="Windows Service" required="no">
239            <description>Automatically start I2P in the background</description>
240            <os family="windows" />
241            <executable targetfile="$INSTALL_PATH/set_config_dir_for_nt_service.bat" stage="postinstall" failure="warn" keep="true" />
242            <executable targetfile="$INSTALL_PATH/install_i2p_service_winnt.bat" stage="postinstall" failure="warn" keep="true" />
243            <executable targetfile="$INSTALL_PATH/I2Psvc.exe" stage="postinstall" failure="warn" keep="true">
244                <args>
245                    <arg value="-t" />
246                    <arg value="$INSTALL_PATH\wrapper.config" />
247                </args>
248            </executable>
249        </pack>
250    </packs>
251
252</installation>
Note: See TracBrowser for help on using the repository browser.