Writing Installation Descriptions


An IzPack installation description is a XML file, consisting of the root element <installation> and a number of embedded elements that can be included.


Sample IzPack installation description
<izpack:installation version="5.0"
                     xsi:schemaLocation="http://izpack.org/schema/installation http://izpack.org/schema/5.0/izpack-installation-5.0.xsd">


    <langpack iso3="eng"/>

  <guiprefs width="800" height="600" resizable="no">
    <laf name="substance">
      <os family="windows" />
      <os family="unix" />
      <param name="variant" value="mist-silver" />
    <laf name="substance">
      <os family="mac" />
      <param name="variant" value="mist-aqua" />
    <modifier key="useHeadingPanel" value="yes" />

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

    <pack name="Test Core" required="yes">
      <description>The core files needed for the application</description>
      <fileset dir="plain" targetdir="${INSTALL_PATH}" override="true"/>
      <parsable targetfile="${INSTALL_PATH}/test.properties"/>


Root element

An IzPack installation description must be always embedded into the root element <installation>.






The attribute defines the version of the XML file layout and is used by the compiler to identify if it is capable of compiling the XML file correctly. This should be set to the lowest version of izPack that will support the features used in the install.xml file. For a new project, this would be the major and minor parts of the current version. For izPack version 5.0.0-rc1, use version="5.0"


Embedded elements

There are a number of elements that can be included to describe the installation:

Concepts and Types

There are a couple of common types that can be used in the installation description and in resource files.

These are described in Concepts and Types.