I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ce50a9ca authored by zzz's avatar zzz
Browse files

Upgrade to izpack 4.3.0 and add a short script to fix Vista install problems.

(previous izpack was 3.7.2 from 2005-04-22)

izpack 4.3.0 from :
http://dist.codehaus.org/izpack/releases/4.3.0/IzPack-install-4.3.0.jar
SHA1 f06da6b26ac2c68fed64ab38980352989b8d8841
(no signatures or sha1sums found on website, and the jar is unsigned)
License: Apache 2.0

upack izpack:
java -jar IzPack-install-4.3.0.jar
or
java -jar IzPack-install-4.3.0.jar -console

get the standalone-compiler.jar from the installation lib/ directory:
SHA1 6d2b4a5657bfb864a333b1c4b1c0f8223aa57d80
(no signatures or sha1sums found on website, and the jar is unsigned)

This fixes the bug with the install windows centered in all the
workspaces, not the current workspace. And who knows what other
bugs in the last 4 years.

To fix Vista (and presumably Windows 7) permissiom problems,
add a run-privileged flag for those, and run the new fixperms.bat
which calls icacls to add the privileges to the install directory.

Add support for 6 more language packs found in the new release.
Change from ISO3 codes to native language names.

Disable creation of the i2p.tar.bz2 file in build.xml
(distributed as i2pheadless-0.7.x.tar.bz2), as izpack 4.3.0 now
supports headless installation with java -jar i2pinstall.exe -console.
Update INSTALL.txt and INSTALL-headless.txt accordingly.
parent b7d581b4
No related branches found
No related tags found
No related merge requests found
Headless I2P installation instructions Headless I2P installation instructions
1) tar xjf i2p.tar.bz2 (you've already done this) 1) java -jar i2pinstall.exe -console (you've already done this)
2) cd i2p ; vi INSTALL-headless.txt (you're doing this now)
3) sh postinstall.sh (this launches the router)
4) lynx http://localhost:7657/index.jsp (configure the router)
If you're having trouble, swing by http://forum.i2p.net/, check the This will run the installer in text mode, including running the postinstall.sh
website at http://www.i2p.net/, or get on irc://irc.freenode.net/#i2p script, which will start the router and launch a browser.
If you do not have an X server running, the browser launch will fail, and
you may use:
lynx http://localhost:7657/index.jsp
to configure the router.
If you're having trouble, swing by http://forum.i2p2.de/, check the
website at http://www.i2p2.de/, or get on irc://irc.freenode.net/#i2p
To run I2P explicitly: To run I2P explicitly:
(*nix): sh i2prouter start (*nix): sh i2prouter start
......
...@@ -6,16 +6,20 @@ and package up the appropriate installer by running: ...@@ -6,16 +6,20 @@ and package up the appropriate installer by running:
ant pkg ant pkg
This will produce a few key files: This will produce a few key files:
* i2p.tar.bz2: the headless installation * install.jar: the GUI and console installer
* install.jar: the GUI installer * i2pinstall.exe: the GUI and console installer wrapped for cross-platform execution
* i2pupdate.zip: the update package * i2pupdate.zip: the update package
From there, you can follow the headless installation instructions From there, you can run the headless (console mode) installer:
with the headless installer, run the GUI installer, or deploy java -jar i2pinstall.exe -console
the update into an existing installation.
Or run the GUI installer:
java -jar i2pinstall.exe
Or move the update file into an existing installation directory and restart.
You will need to have ant installed from http://ant.apache.org/ You will need to have ant installed from http://ant.apache.org/
(1.5 or newer) (1.7.0 or newer)
Supported JVMs: Supported JVMs:
Windows: Latest available from http://java.sun.com/ (1.5+ supported) Windows: Latest available from http://java.sun.com/ (1.5+ supported)
......
...@@ -116,8 +116,9 @@ Installer: ...@@ -116,8 +116,9 @@ Installer:
Forms were created using Abeille Forms Designer (https://abeille.dev.java.net/) Forms were created using Abeille Forms Designer (https://abeille.dev.java.net/)
Izpack: Izpack 4.3.0:
See licenses/LICENSE-Apache1.1.txt Copyright (c) 2001-2008 Julien Ponge
See licenses/LICENSE-Apache2.0.txt
......
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
</delete> </delete>
</target> </target>
<!-- one release only, then back to updaterWithJettyFixes --> <!-- one release only, then back to updaterWithJettyFixes -->
<target name="pkg" depends="distclean, updaterWithJettyFixesAndGeoIP, tarball, installer" /> <target name="pkg" depends="distclean, updaterWithJettyFixesAndGeoIP, preppkg, installer" />
<target name="pkgclean" depends="deletepkg-temp"> <target name="pkgclean" depends="deletepkg-temp">
<delete> <delete>
<fileset dir="." includes="i2p.tar.bz2 install.jar i2pupdate.zip" /> <fileset dir="." includes="i2p.tar.bz2 install.jar i2pupdate.zip" />
...@@ -249,6 +249,7 @@ ...@@ -249,6 +249,7 @@
<copy file="installer/resources/eepget" todir="pkg-temp/" /> <copy file="installer/resources/eepget" todir="pkg-temp/" />
<copy file="installer/resources/i2prouter" todir="pkg-temp/" /> <copy file="installer/resources/i2prouter" todir="pkg-temp/" />
<copy file="installer/resources/i2prouter.bat" todir="pkg-temp/" /> <copy file="installer/resources/i2prouter.bat" todir="pkg-temp/" />
<copy file="installer/resources/fixperms.bat" todir="pkg-temp/" />
<copy file="installer/resources/i2ptunnel.config" todir="pkg-temp/" /> <copy file="installer/resources/i2ptunnel.config" todir="pkg-temp/" />
<!-- <copy file="installer/resources/install_i2p_service_unix" todir="pkg-temp/" /> --> <!-- <copy file="installer/resources/install_i2p_service_unix" todir="pkg-temp/" /> -->
<copy file="installer/resources/install_i2p_service_winnt.bat" todir="pkg-temp/" /> <copy file="installer/resources/install_i2p_service_winnt.bat" todir="pkg-temp/" />
...@@ -315,6 +316,7 @@ ...@@ -315,6 +316,7 @@
<copy file="installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-JGoodies-Looks.txt" /> <copy file="installer/lib/launch4j/lib/JGoodies.Looks.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-JGoodies-Looks.txt" />
<copy file="installer/lib/launch4j/lib/XStream.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-XStream.txt" /> <copy file="installer/lib/launch4j/lib/XStream.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-XStream.txt" />
</target> </target>
<!-- this is no longer required, izpack 4.3.0 supports headless installs with java -jar i2pinstall.exe -console -->
<target name="tarball" depends="preppkg"> <target name="tarball" depends="preppkg">
<tar compression="bzip2" destfile="i2p.tar.bz2"> <tar compression="bzip2" destfile="i2p.tar.bz2">
<tarfileset dir="pkg-temp" includes="**/*" prefix="i2p" /> <tarfileset dir="pkg-temp" includes="**/*" prefix="i2p" />
...@@ -523,7 +525,7 @@ ...@@ -523,7 +525,7 @@
</copy> </copy>
</target> </target>
<target name="updaterWithDesktopgui" depends="prepupdateWithDesktopgui,updater" /> <target name="updaterWithDesktopgui" depends="prepupdateWithDesktopgui,updater" />
<target name="pkgWithDesktopgui" depends="distclean, updaterWithDesktopgui, installerWithDesktopgui, tarball" /> <target name="pkgWithDesktopgui" depends="distclean, updaterWithDesktopgui, installerWithDesktopgui, preppkg" />
<target name="distWithDesktopgui" depends="pkgWithDesktopgui, javadoc" /> <target name="distWithDesktopgui" depends="pkgWithDesktopgui, javadoc" />
<target name="distcleanWithDesktopgui" depends="distclean"> <target name="distcleanWithDesktopgui" depends="distclean">
<ant dir="apps/desktopgui" target="build_clean" /> <ant dir="apps/desktopgui" target="build_clean" />
......
...@@ -45,7 +45,6 @@ Make the source tarball: ...@@ -45,7 +45,6 @@ Make the source tarball:
Until the build script gets this ability, you need to rename some files: Until the build script gets this ability, you need to rename some files:
mv i2pinstall.exe i2pinstall-0.7.xx.exe mv i2pinstall.exe i2pinstall-0.7.xx.exe
mv i2p.tar.bz2 i2pheadless-0.7.xx.tar.bz2
mv i2pupdate.zip i2pupdate-0.7.xx.zip mv i2pupdate.zip i2pupdate-0.7.xx.zip
you probably don't need to rename i2pupdate.sud you probably don't need to rename i2pupdate.sud
...@@ -56,7 +55,6 @@ Generate hashes: ...@@ -56,7 +55,6 @@ Generate hashes:
Generate PGP signatures: Generate PGP signatures:
gpg -b i2pinstall-0.7.xx.exe gpg -b i2pinstall-0.7.xx.exe
gpg -b i2pheadless-0.7.xx.tar.bz2
gpg -b i2psource-0.7.xx.tar.bz2 gpg -b i2psource-0.7.xx.tar.bz2
gpg -b i2pupdate-0.7.xx.zip gpg -b i2pupdate-0.7.xx.zip
gpg -b i2pupdate.sud gpg -b i2pupdate.sud
......
...@@ -9,12 +9,40 @@ ...@@ -9,12 +9,40 @@
<author name="I2P" email="http://forum.i2p2.de/"/> <author name="I2P" email="http://forum.i2p2.de/"/>
</authors> </authors>
<url>http://www.i2p2.de/</url> <url>http://www.i2p2.de/</url>
<!-- use pack200 compression, saves about 33%
see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
However it makes the unpacked jars much larger...
For further testing...
<pack200 />
-->
<!-- adding this element will make the installer attempt to launch itself with administrator permissions,
but see http://www.nabble.com/Classpath-security-issues-on-Vista-td22456230.html
which says it isn't sufficient:
Just to let you know that I managed to identify and resolve the problem (in
case anyone else has it). The default installation directory for Vista is
under "Program Files" which is a "special" directory which can only be
written to (create sub-directories) by administrators. However, stupid
Vista downgrades an administrator to a normal user when the program is run
via the application shortcut menu. As you suggested, I added a script which
runs ICACLS which resolved the problem, i.e.
icacls %1 /grant Users:F /T > priv.log
The command needs to be run as a Process rather than as an executable tag in
order to pass $INSTALL_PATH as a parameter.
-->
<run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/>
</info> </info>
<guiprefs width="590" height="356" resizable="yes"> <guiprefs width="590" height="356" resizable="yes">
<laf name="liquid"> <laf name="liquid">
<os family="unix"/> <os family="unix"/>
</laf> </laf>
<!-- full names, not iso3 codes -->
<modifier key="langDisplayType" value="native" />
</guiprefs> </guiprefs>
<locale> <locale>
...@@ -24,11 +52,16 @@ ...@@ -24,11 +52,16 @@
<langpack iso3="cze"/> <langpack iso3="cze"/>
<langpack iso3="dan"/> <langpack iso3="dan"/>
<langpack iso3="deu"/> <langpack iso3="deu"/>
<langpack iso3="ell"/>
<langpack iso3="fa"/>
<langpack iso3="fin"/> <langpack iso3="fin"/>
<langpack iso3="fra"/> <langpack iso3="fra"/>
<langpack iso3="glg"/>
<langpack iso3="hun"/> <langpack iso3="hun"/>
<langpack iso3="ind"/>
<langpack iso3="ita"/> <langpack iso3="ita"/>
<langpack iso3="jpn"/> <langpack iso3="jpn"/>
<langpack iso3="kor"/>
<langpack iso3="mys"/> <langpack iso3="mys"/>
<langpack iso3="ned"/> <langpack iso3="ned"/>
<langpack iso3="nor"/> <langpack iso3="nor"/>
...@@ -41,6 +74,7 @@ ...@@ -41,6 +74,7 @@
<langpack iso3="svk"/> <langpack iso3="svk"/>
<langpack iso3="swe"/> <langpack iso3="swe"/>
<langpack iso3="tur"/> <langpack iso3="tur"/>
<langpack iso3="twn"/>
<langpack iso3="ukr"/> <langpack iso3="ukr"/>
</locale> </locale>
...@@ -91,6 +125,18 @@ ...@@ -91,6 +125,18 @@
<args><arg value="$INSTALL_PATH\uninstall_i2p_service_unix" /></args></executable> <args><arg value="$INSTALL_PATH\uninstall_i2p_service_unix" /></args></executable>
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" /> <executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
<args><arg value="$INSTALL_PATH\lib\wrapper" /></args></executable> <args><arg value="$INSTALL_PATH\lib\wrapper" /></args></executable>
<!-- workaround for vista permission problems - see comments above -->
<executable targetfile="$INSTALL_PATH/fixperms.bat" type="bin" stage="postinstall" keep="true" failure="warn"
condition="izpack.windowsinstall.vista|izpack.windowsinstall.7" >
<args><arg value="$INSTALL_PATH" /></args>
</executable>
<!-- else delete it -->
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"
condition="izpack.windowsinstall.xp|izpack.windowsinstall.2003" >
<args><arg value="$INSTALL_PATH\fixperms.bat" /></args>
</executable>
<!-- <!--
<executable targetfile="$INSTALL_PATH/lib/exec.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" /> <executable targetfile="$INSTALL_PATH/lib/exec.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
<args><arg value="$INSTALL_PATH" /><arg value="$INSTALL_PATH\I2Psvc.exe" /><arg value="-c" /><arg value="$INSTALL_PATH\wrapper.config" /></args></executable> <args><arg value="$INSTALL_PATH" /><arg value="$INSTALL_PATH\I2Psvc.exe" /><arg value="-c" /><arg value="$INSTALL_PATH\wrapper.config" /></args></executable>
......
No preview for this file type
:: Fix Vista permission problems
:: From http://www.nabble.com/Classpath-security-issues-on-Vista-td22456230.html
::
:: 'echo Y' to get past the 'are you sure' question...
:: cacls requires it on XP, icacls doesnt appear so, but can't hurt
:: F : full control
:: /c : continue on error
:: /q : quiet
:: /t : recursive
::
echo Y|icacls %1 /grant Users:F /c /t > %1%\fixperms.log
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment