Some questions regarding IZPack
Posted on 2006-07-12
From the IZPack documentation:
The Packs Element <packs>
This is a crucial section as it is used to specify the files that need to be installed. The <packs> section consists of several <pack> tags.
The <pack> takes the following attributes :
* name: the pack name
* required: takes yes or no and specifies whether the pack is optional or not.
* os: optional attribute that lets you make the pack targeted to a specific operating system, for instance unix, mac and so on.
* preselected: optional attribute that lets you choose whether the pack is by default selected for installation or not. Possible values are yes and no. A pack which is not preselected needs to be explicitly selected by the user during installation to get installed.
* loose: can be used so that the files are not located in the installer Jar. The possible values are true or false, the default beeing false. The author of this feature needed to put his application on a CD so that the users could run it directly from this media. However, he also wanted to offer them the possibility to install the software localy. Enabling this feature will make IzPack take the files on disk instead of from the installer. Please make sure that your relative files paths are correct !
* id: this attribute is used to give a unique id to the pack to be used for internationalization.
I'm interested in using the 'loose' attribute. We have an app that uses MSDE. So I've created an installer that will install our app and then install MSDE. In my xml file I've specified this pack:
<pack name="MSDE 2000" required="no">
<description>The MS SQL Server app</description>
<file src="server" targetdir="$INSTALL_PATH" loose="true"/>
<executable targetfile="$INSTALL_PATH/server/setup.exe" stage="postinstall"/>
But this file is still compiled into the jar file. Am I doing something wrong, or did I misunderstand this?
Then the other question is how do I specify the default installation folder?