source: installer/install.xml @ 05d22344

Last change on this file since 05d22344 was 05d22344, checked in by zzz <zzz@…>, 11 years ago
  • Izpack: Add 64-bit windows dll so installer doesn't die trying to add shortcuts
  • Property mode set to 100644
File size: 9.7 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.7.10</appversion>
8        <authors>
9            <author name="I2P" email="http://forum.i2p2.de/"/>
10        </authors>
11        <url>http://www.i2p2.de/</url>
12
13        <!-- use pack200 compression, saves about 33%
14             see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
15             However it makes the unpacked jars much larger...
16             For further testing...
17             <pack200 />
18         -->
19
20        <!-- adding this element will make the installer attempt to launch itself with administrator permissions,
21             but see http://www.nabble.com/Classpath-security-issues-on-Vista-td22456230.html
22             which says it isn't sufficient:
23
24                Just to let you know that I managed to identify and resolve the problem (in
25                case anyone else has it).  The default installation directory for Vista is
26                under "Program Files" which is a "special" directory which can only be
27                written to (create sub-directories) by administrators.  However, stupid
28                Vista downgrades an administrator to a normal user when the program is run
29                via the application shortcut menu.  As you suggested, I added a script which
30                runs ICACLS which resolved the problem, i.e.
31
32                icacls %1 /grant Users:F /T > priv.log
33
34                The command needs to be run as a Process rather than as an executable tag in
35                order to pass $INSTALL_PATH as a parameter.
36         -->
37        <run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/>
38    </info>
39
40    <guiprefs width="590" height="356" resizable="yes">
41        <laf name="liquid">
42            <os family="unix"/>
43        </laf>
44        <!-- full names, not iso3 codes -->
45        <modifier key="langDisplayType" value="native" />
46    </guiprefs>
47
48    <locale>
49        <langpack iso3="eng"/>
50        <langpack iso3="cat"/>
51        <langpack iso3="chn"/>
52        <langpack iso3="cze"/>
53        <langpack iso3="dan"/>
54        <langpack iso3="deu"/>
55        <langpack iso3="ell"/>
56        <langpack iso3="fa"/>
57        <langpack iso3="fin"/>
58        <langpack iso3="fra"/>
59        <langpack iso3="glg"/>
60        <langpack iso3="hun"/>
61        <langpack iso3="ind"/>
62        <langpack iso3="ita"/>
63        <langpack iso3="jpn"/>
64        <langpack iso3="kor"/>
65        <langpack iso3="mys"/>
66        <langpack iso3="ned"/>
67        <langpack iso3="nor"/>
68        <langpack iso3="pol"/>
69        <langpack iso3="por"/>
70        <langpack iso3="rom"/>
71        <langpack iso3="rus"/>
72        <langpack iso3="scg"/>
73        <langpack iso3="spa"/>
74        <langpack iso3="svk"/>
75        <langpack iso3="swe"/>
76        <langpack iso3="tur"/>
77        <langpack iso3="twn"/>
78        <langpack iso3="ukr"/>
79    </locale>
80
81    <!--
82        The <os> tag can be used to restrict the inclusion into the uninstaller
83        to a specific operating system family, architecture or version.
84        The inclusion into the installer will be always done.
85        Here's a sample :
86
87        <native type="izpack" name="ShellLink.dll">
88            <os family="windows"/>
89        </native>
90
91        This doesn't appear to be necessary, the dlls don't get put in Uninstaller/uninstaller.jar on linux
92     -->
93    <native type="izpack" name="ShellLink.dll" />
94    <native type="izpack" name="ShellLink_x64.dll" />
95
96    <resources>
97        <res id="Installer.image" src="installer/resources/i2plogo.png" />
98        <res id="InfoPanel.info" src="installer/resources/readme.license.txt"/>
99        <!-- <res id="ProcessPanel.Spec.xml" src="installer/resources/ProcessPanel.Spec.xml"/> -->
100        <res id="shortcutSpec.xml" src="installer/resources/shortcutSpec.xml" />
101        <res id="XInfoPanel.info" src="installer/resources/start-i2p.txt" />
102    </resources>
103
104    <panels>
105        <panel classname="HelloPanel"/>
106        <panel classname="InfoPanel"/>
107        <panel classname="TargetPanel"/>
108        <panel classname="InstallPanel"/>
109        <panel classname="ShortcutPanel"><os family="windows" /></panel>
110        <!-- <panel classname="ProcessPanel"><os family="windows" /></panel> -->
111        <!-- unix|mac doesn't work, displays for windows too -->
112        <panel classname="XInfoPanel" ><os family="unix" /></panel>
113        <panel classname="XInfoPanel" ><os family="mac" /></panel>
114        <panel classname="SimpleFinishPanel"/>
115    </panels>
116
117    <packs>
118        <pack name="Base" required="yes">
119            <description>Base installation files</description>
120            <fileset dir="pkg-temp" includes="**/*" targetdir="$INSTALL_PATH"/>
121            <!--
122              Do variable substitution in these files. See:
123              http://www.javalobby.org/forums/thread.jspa?threadID=15967&tstart=0
124              and the izpack docs for some guidance.
125             -->
126            <parsable targetfile="$INSTALL_PATH/wrapper.config" type="plain" />
127            <parsable targetfile="$INSTALL_PATH/i2prouter" type="shell" os="unix|mac" />
128            <parsable targetfile="$INSTALL_PATH/eepget" type="shell" os="unix|mac" />
129            <parsable targetfile="$INSTALL_PATH/runplain.sh" type="shell" os="unix|mac" />
130           
131            <!-- postinstall stuff for windows -->
132            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
133                <args><arg value="$INSTALL_PATH\lib\wrapper\win32\I2Psvc.exe" /><arg value="$INSTALL_PATH" /></args></executable>
134            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
135                <args><arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.dll" /><arg value="$INSTALL_PATH\lib" /></args></executable>
136            <executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
137                <args><arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.jar" /><arg value="$INSTALL_PATH\lib" /></args></executable>
138            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
139                <args><arg value="$INSTALL_PATH\i2prouter" /></args></executable>
140            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
141                <args><arg value="$INSTALL_PATH\install_i2p_service_unix" /></args></executable>
142            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
143                <args><arg value="$INSTALL_PATH\install-headless.txt" /></args></executable>
144            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
145                <args><arg value="$INSTALL_PATH\osid" /></args></executable>
146            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
147                <args><arg value="$INSTALL_PATH\postinstall.sh" /></args></executable>
148            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
149                <args><arg value="$INSTALL_PATH\postinstall.bat" /></args></executable>
150            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
151                <args><arg value="$INSTALL_PATH\uninstall_i2p_service_unix" /></args></executable>
152            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
153                <args><arg value="$INSTALL_PATH\lib\wrapper" /></args></executable>
154            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
155                <args><arg value="$INSTALL_PATH\eepget" /></args></executable>
156
157            <!-- workaround for vista permission problems - see comments above -->
158            <executable targetfile="$INSTALL_PATH/fixperms.bat" type="bin" stage="postinstall" keep="true" failure="warn"
159                condition="izpack.windowsinstall.vista|izpack.windowsinstall.7" >
160                <args><arg value="$INSTALL_PATH" /></args>
161            </executable>
162            <!-- else delete it -->
163            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"
164                condition="izpack.windowsinstall.xp|izpack.windowsinstall.2003" >
165                <args><arg value="$INSTALL_PATH\fixperms.bat" /></args>
166            </executable>
167
168            <!--
169            <executable targetfile="$INSTALL_PATH/installer/exec.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
170                <args><arg value="$INSTALL_PATH" /><arg value="$INSTALL_PATH\I2Psvc.exe" /><arg value="-c" /><arg value="$INSTALL_PATH\wrapper.config" /></args></executable>
171            -->
172               
173            <!-- postinstall stuff for *nix -->
174            <!-- stage=never means chmod a+x -->
175            <executable targetfile="$INSTALL_PATH/postinstall.sh" type="bin" stage="never" keep="true" failure="warn"><os family="unix" /></executable>
176            <executable targetfile="$INSTALL_PATH/postinstall.sh" type="bin" stage="postinstall" keep="true" failure="warn"><os family="unix" />
177                <args><arg value="$INSTALL_PATH" /></args></executable>
178
179        </pack>
180    </packs>
181
182</installation>
Note: See TracBrowser for help on using the repository browser.