powered by Jive Software

Move the Installer to open source: IzPack

Hi,

the current install4j installer is commercial and this tool is not available for the community. Has someone played with IzPack (izapck.org) as an alternative for cross plattform installation?

Regards

Walter

I actually spent some time on this last week. Took me a while, but I have it down pretty well now I think.

I compiled Spark as directed in the docs here with ant, and then just used IzPack to build my installer insead of install4j. After a lot of trial and error, it works like a charm.

Hi Walter,

I think it makes sense that you move this thread to The specified item was not found… This installer could be interesting also for Openfire.

LG

I have create the first simple patch to support izpack:

http://www.igniterealtime.org/community/thread/37565

HA! Looking at your patch file helped me figure it out thanks.

Hi

I would kindly ask to document the sucessfull attempts. Moving to IzPack should be a benefit for all of us who try to move Spark to newer versions. Thanks for the effort.

How about a document in te Contributors section.

Walter

EDIT: I didn’t see the bit about adding a write up in the document section until I posted this. I promise I will add something tomorrow or the next day.

I’m pretty tired so this isn’t as detailed as it should be but, but the jist of it is:

Install izpack.

In you build.xml add:

This line under the rest of the property tags:

Then under installers add:


Creat a file under build/installer called spark-izpack.xml and paste this into it:

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> Spark 2.6.0 [http://www.igniterealtime.org](http://www.igniterealtime.org)
<guiprefs width="640" height="480" resizable="no" />

<locale>
       <langpack iso3="eng"/>
    <langpack iso3="fra"/>
    <langpack iso3="deu"/>
    <langpack iso3="ita"/>
    <langpack iso3="jpn"/>
    <langpack iso3="spa"/>
    <langpack iso3="dan"/>
    <langpack iso3="ell"/>
    <langpack iso3="cat"/>
    <langpack iso3="ned"/>
    <langpack iso3="fin"/>
    <langpack iso3="swe"/>
    <langpack iso3="por"/>
    <langpack iso3="pol"/>
    <langpack iso3="rus"/>
    <langpack iso3="ukr"/>
    <langpack iso3="hun"/>
    <langpack iso3="svk"/>
    <langpack iso3="rom"/>
    <langpack iso3="mys"/>
    <langpack iso3="nor"/>
    <langpack iso3="chn"/>
    <langpack iso3="scg"/>
    <langpack iso3="cze"/>
    <langpack iso3="kor"/>
    <langpack iso3="glg"/>
</locale>

<resources>
    <res src="build/installer/izpack/shortcutSpec.xml" id="shortcutSpec.xml"/>
</resources>

<panels>
    <panel classname="TargetPanel" />
    <panel classname="PacksPanel" />
    <panel classname="InstallPanel" />
    <panel classname="ShortcutPanel" />
    <panel classname="FinishPanel" />
</panels>

<packs>
    <pack name="Spark" required="yes">
        <description>XMPP Client</description>
        <file src="target/build/bin"         targetdir="$INSTALL_PATH"/>
        <file src="target/build/lib"         targetdir="$INSTALL_PATH"/>
        <file src="target/build/logs"        targetdir="$INSTALL_PATH"/>
        <file src="target/build/plugins"     targetdir="$INSTALL_PATH"/>
        <file src="target/build/resources"     targetdir="$INSTALL_PATH"/>
        <file src="target/build/xtra"         targetdir="$INSTALL_PATH"/>
       
        <executable targetfile="$INSTALL_PATH/bin/startup.sh" />
        <executable targetfile="$INSTALL_PATH/bin/startup.bat" />
    </pack>   
</packs>       

Create a folder in build/installer called izpack

In that folder create a new file called shortcutSpec.xml and paste the following into it:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<shortcut
    name="IzPack"
    programGroup="yes"
    desktop="yes"
    applications="no"
    startMenu="no"
    startup="no"
    target="$INSTALL_PATH\bin\startup.bat"
    commandLine=""
    description="Spark"
    iconIndex="0"
    initialState="noShow">
<shortcut
        name="Spark-@ver@ Uninstaller"
        programGroup="yes"
        desktop="no"
        applications="no"
        startMenu="no"
        startup="no"
        target="$INSTALL_PATH\Uninstaller\uninstaller.jar"
        commandLine=""
        iconFile="%SystemRoot%\system32\SHELL32.dll"
        iconIndex="31"
        description="This uninstalls Spark @build.number@">
    <createForPack name="Core"/>
</shortcut>

Thats it I think, Im pretty tired so I hope I didn’t miss anything.

izpack only creates an executable jar file so I am trying to turn that into an exe with jsmooth. Hopefully once I have a .jsmooth file I will

be able to incorporate that into the ant build.xml as well. I haven’t been able to get it to work yet though.

Message was edited by: Jason Stevens

OK, I have created a document in the Contributors section here: http://www.igniterealtime.org/community/docs/DOC-1767