source: installer/install.xml

Last change on this file was 16d2bdc, checked in by zzz <zzz@…>, 18 months ago

0.9.40

  • Property mode set to 100644
File size: 14.5 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.9.40</appversion>
8        <authors>
9            <author name="I2P" email="https://geti2p.net/"/>
10        </authors>
11        <url>https://geti2p.net/</url>
12        <javaversion>1.7</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    <dynamicvariables>
106        <variable name="datamodel" value="${SYSTEM_sun_arch_data_model}"/>
107    </dynamicvariables>
108
109    <conditions>
110        <condition type="variable" id="is64bit">
111            <name>datamodel</name>
112            <value>64</value>
113        </condition>
114    </conditions>
115
116    <panels>
117        <panel classname="HelloPanel"/>
118        <panel classname="InfoPanel"/>
119        <panel classname="PacksPanel"><os family="windows" /></panel>
120        <panel classname="TargetPanel"/>
121        <panel classname="ShortcutPanel"><os family="windows" /></panel>
122        <panel classname="InstallPanel"/>
123        <!-- <panel classname="ProcessPanel"><os family="windows" /></panel> -->
124        <!-- unix|mac doesn't work, displays for windows too -->
125
126        <!--
127         Using the condition this way, the panel is shown on everything *but* Windows.
128         -->
129        <panel classname="XInfoPanel" condition="!izpack.windowsinstall" />
130        <panel classname="SimpleFinishPanel"/>
131    </panels>
132
133    <packs>
134        <pack name="Base" required="yes">
135            <description>Base installation files</description>
136            <fileset dir="pkg-temp" includes="**/*" targetdir="$INSTALL_PATH"/>
137            <!--
138              Do variable substitution in these files. See:
139              http://www.javalobby.org/forums/thread.jspa?threadID=15967&tstart=0
140              and the izpack docs for some guidance.
141             -->
142            <parsable targetfile="$INSTALL_PATH/wrapper.config" type="plain" />
143            <parsable targetfile="$INSTALL_PATH/i2prouter" type="shell"> <os family="unix" /> </parsable>
144            <parsable targetfile="$INSTALL_PATH/eepget" type="shell"> <os family="unix" /> </parsable>
145            <parsable targetfile="$INSTALL_PATH/eepget.bat" type="shell" os="windows" />
146            <parsable targetfile="$INSTALL_PATH/runplain.sh" type="shell"> <os family="unix" /> </parsable>
147            <parsable targetfile="$INSTALL_PATH/Start I2P Router.app/Contents/MacOS/i2prouter" type="shell" os="mac" />
148
149            <!-- postinstall stuff for windows -->
150            <!-- Wrapper for 32bit Windows JVM -->
151            <executable targetfile="$INSTALL_PATH/utility.jar"
152                type="jar"
153                stage="postinstall"
154                keep="true"
155                failure="warn"
156                condition="!is64bit">
157                <os family="windows" />
158                <args>
159                    <arg value="copy" />
160                    <arg value="$INSTALL_PATH\lib\wrapper\win32\I2Psvc.exe" />
161                    <arg value="$INSTALL_PATH" />
162                </args>
163            </executable>
164
165            <executable targetfile="$INSTALL_PATH/utility.jar"
166                type="jar"
167                stage="postinstall"
168                keep="true"
169                failure="warn"
170                condition="!is64bit">
171                <os family="windows" />
172                <args>
173                    <arg value="copy" />
174                    <arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.dll" />
175                    <arg value="$INSTALL_PATH\lib" />
176                </args>
177            </executable>
178
179            <!-- wrapper for 64bit Windows JVM -->
180            <executable targetfile="$INSTALL_PATH/utility.jar"
181                type="jar"
182                stage="postinstall"
183                keep="true"
184                failure="warn"
185                condition="is64bit">
186                <os family="windows" />
187                <args>
188                    <arg value="copy" />
189                    <arg value="$INSTALL_PATH\lib\wrapper\win64\I2Psvc.exe" />
190                    <arg value="$INSTALL_PATH" />
191                </args>
192            </executable>
193
194            <executable targetfile="$INSTALL_PATH/utility.jar"
195                type="jar"
196                stage="postinstall"
197                keep="true"
198                failure="warn"
199                condition="is64bit">
200                <os family="windows" />
201                <args>
202                    <arg value="copy" />
203                    <arg value="$INSTALL_PATH\lib\wrapper\win64\wrapper.dll" />
204                    <arg value="$INSTALL_PATH\lib" />
205                </args>
206            </executable>
207
208            <!--
209             We still copy the 32 bit version of wrapper.dll (even with a
210             64bit jvm) so that if a 32 bit jvm is installed in the future,
211             nothing breaks.
212            -->
213             <executable targetfile="$INSTALL_PATH/utility.jar"
214                 type="jar"
215                 stage="postinstall"
216                 keep="true"
217                 failure="warn"
218                 condition="is64bit">
219                 <os family="windows" />
220                 <args>
221                     <arg value="copy" />
222                     <arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.dll" />
223                     <arg value="$INSTALL_PATH\lib\wrapper-windows-x86-32.dll" />
224                 </args>
225             </executable>
226
227             <!-- workaround for bad default path for wrapper.log in Windows. -->
228             <executable targetfile="$INSTALL_PATH/utility.jar"
229                 type="jar"
230                 stage="postinstall" keep="true">
231                 <os family="windows" />
232                 <args>
233                     <arg value="fixwinpaths" />
234                     <arg value="$INSTALL_PATH\wrapper.config" />
235                 </args>
236             </executable>
237
238             <!-- Now we'll get rid of the UNIX-only stuff -->
239             <executable targetfile="$INSTALL_PATH/utility.jar"
240                 type="jar"
241                 stage="postinstall" keep="true" failure="warn">
242                 <os family="windows" />
243                 <args>
244                     <arg value="delete" />
245                     <arg value="$INSTALL_PATH\i2prouter" />
246                     <arg value="$INSTALL_PATH\install_i2p_service_unix" />
247                     <arg value="$INSTALL_PATH\install-headless.txt" />
248                     <arg value="$INSTALL_PATH\runplain.sh" />
249                     <arg value="$INSTALL_PATH\osid" />
250                     <arg value="$INSTALL_PATH\postinstall.sh" />
251                     <arg value="$INSTALL_PATH\uninstall_i2p_service_unix" />
252                     <arg value="$INSTALL_PATH\lib\wrapper" />
253                     <arg value="$INSTALL_PATH\eepget" />
254                     <arg value="$INSTALL_PATH/Start I2P Router.app" />
255                     <arg value="$INSTALL_PATH/net.i2p.router.plist.template" />
256                     <arg value="$INSTALL_PATH/install_i2p_service_osx.command" />
257                     <arg value="$INSTALL_PATH/uninstall_i2p_service_osx.command" />
258                     <arg value="$INSTALL_PATH/man" />
259                     <arg value="$INSTALL_PATH/locale" />
260             <!-- Placeholder for an OSX 'shortcut' to the router console
261                    <arg value="$INSTALL_PATH/I2P Router Console.webloc" />
262            -->
263                </args>
264            </executable>
265
266            <!-- workaround for vista permission problems - see comments above -->
267            <executable targetfile="$INSTALL_PATH/fixperms.bat" type="bin" stage="postinstall" keep="true" failure="warn"
268                condition="!izpack.windowsinstall.xp+!izpack.windowsinstall.2003" >
269                <os family="windows" />
270                <args>
271                    <arg value="$INSTALL_PATH" />
272                </args>
273            </executable>
274            <!-- else delete it -->
275            <executable targetfile="$INSTALL_PATH/utility.jar"
276                type="jar"
277                stage="postinstall" keep="true" failure="warn" condition="izpack.windowsinstall.xp|izpack.windowsinstall.2003">
278                <os family="windows" />
279                <args>
280                    <arg value="delete" />
281                    <arg value="$INSTALL_PATH\fixperms.bat" />
282                </args>
283            </executable>
284
285            <!--
286            <executable targetfile="$INSTALL_PATH/utility.jar"
287                type="jar"
288                stage="postinstall" keep="true" failure="warn">
289                <os family="windows" />
290                    <args>
291                        <arg value="exec" />
292                        <arg value="$INSTALL_PATH" />
293                        <arg value="$INSTALL_PATH\I2Psvc.exe" />
294                        <arg value="-c" />
295                        <arg value="$INSTALL_PATH\wrapper.config" />
296                    </args>
297            </executable>
298            -->
299
300             <!--
301                  and now we delete the installer utility jar.
302                  I moved this out of installer/ because the directory
303                  couldn't be deleted while the jar was active and would
304                  remain on the system.
305
306                  This, however, works fine.
307             -->
308             <executable targetfile="$INSTALL_PATH/utility.jar"
309                 type="jar"
310                 stage="postinstall" keep="false" failure="warn">
311                 <os family="windows" />
312                 <args>
313                     <arg value="delete" />
314                     <arg value="$INSTALL_PATH/utility.jar" />
315                 </args>
316             </executable>
317
318            <!-- postinstall stuff for *nix -->
319            <!-- stage=never means chmod a+x -->
320            <executable targetfile="$INSTALL_PATH/postinstall.sh" type="bin" stage="never" keep="true" failure="warn"><os family="unix" /></executable>
321            <executable targetfile="$INSTALL_PATH/postinstall.sh" type="bin" stage="postinstall" keep="true" failure="warn"><os family="unix" />
322                <args><arg value="$INSTALL_PATH" /></args></executable>
323            <!--
324             Removal of the I2P service in Windows should be done in the base pack
325             so that even if a user installed the service manually it will still be
326             removed when uninstalling.
327            -->
328            <executable targetfile="$INSTALL_PATH/uninstall_i2p_service_winnt.bat" stage="uninstall" os="windows" />
329        </pack>
330
331        <!-- to disable by default, add preselected="no" -->
332        <pack name="Windows Service" required="no" preselected="no">
333            <description>Automatically start I2P in the background</description>
334            <os family="windows" />
335            <executable targetfile="$INSTALL_PATH/set_config_dir_for_nt_service.bat" stage="postinstall" failure="warn" keep="true" />
336            <executable targetfile="$INSTALL_PATH/install_i2p_service_winnt.bat" stage="postinstall" failure="warn" keep="true" />
337            <executable targetfile="$INSTALL_PATH/I2Psvc.exe" stage="postinstall" failure="warn" keep="true">
338                <args>
339                    <arg value="-t" />
340                    <arg value="$INSTALL_PATH\wrapper.config" />
341                </args>
342            </executable>
343        </pack>
344    </packs>
345
346</installation>
347<!--
348vim:fenc=utf-8:ai:si:ts=4:sw=4:et:nu:
349-->
Note: See TracBrowser for help on using the repository browser.