source: installer/install.xml @ 660be7d5

Last change on this file since 660be7d5 was 660be7d5, checked in by zzz <zzz@…>, 7 years ago

Installer: Don't install Windows service by default
Causes confusion and multiple instances when users start their own copy too.

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