<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<!--
 ***********************************************************************
 * File:  IzPackInstall.xml
 *
 * Description:
 *
 *   IzPack installation kit build script for the IzPackTest application.
 *
 * Invoking this XML:
 *
 *   Build the installation kit from an ANT build.xml script as in
 *   the following example:
 *
 *      <taskdef name="izpack" classpath="${izpack.jar.file}"
 *          classname="com.izforge.izpack.ant.IzPackTask" />
 *
 *      <target name="build-izpack"
 *          description="Build the IzPack installation kit.">
 *          <echo message="Build the IzPack installation kit."/>
 *          <izpack
 *              input="${install.xml}"
 *              output="${install.jar}"
 *              basedir="${app.build.dir}"
 *              inheritAll="true" />
 *          <property name="prop1" value="value1" />
 *          <property name="prop2" value="value2" />
 *      </target>
 *
 *      Note: inheritAll="true" allows all ANT properties and all
 *      properties defined in the build.xml to be accessible to the
 *      IZPack install.xml via @{propertyName} references.  InheritAll="false"
 *      blocks this access.  The optional property definitions are always
 *      passed to install.xml regardless of the inheritAll setting.
 *
 *   Build the installation kit from a command window as in the following
 *   example:
 *
 *      cd C:\IzPack\bin
 *      .\compile C:\MyApp\install.xml -b C:\MyApp
 *
 * Referencing variables within this XML:
 *
 *   Access ANT properties via @{propertyName}.
 *
 *   Access system environment variables via @{ENV[variableName]}
 *
 *   Access variables defined by install.xml via $variableName or ${variableName}.
 *
 * Author: rdg, 2/14/2007
 ***********************************************************************
 -->

<installation version="1.0">

    <!-- General application information. -->

    <info>
        <appname>IzPack Test Application</appname>
        <appversion>1.0</appversion>
        <authors>
            <author name="rdg" email="rdgarve@nsa"/>
        </authors>
        <url>http://www.some-web-site.com</url>
        <uninstaller write="yes" />
    </info>

    <!-- Declare values for variables that can be used in external
         resources and be replaced at the execution of the installer.
         Note: See the "VARIABLES" documentation section below. -->

    <variables>
        <variable name="RDG_VAR1" value="VAR1_VaLuE"/>
        <variable name="RDG_VAR2" value="VAR2_VaLuE"/>
        <variable name="RDG_VAR3" value="VAR3_VaLuE"/>
    </variables>

    <!-- GUI preferences that determine how the installer window
         will look (look and feel, size, is it resizable, etc.). -->

    <guiprefs width="640" height="480" resizable="yes">
        <laf name="kunststoff">
            <os family="windows" />
            <os family="unix" />
            <os family="linux" />
            <os family="mac" />
        </laf>
        <modifier key="useButtonIcons" value="yes" />
        <modifier key="useLabelIcons" value="yes" />
        <modifier key="labelGap" value="2" />
        <modifier key="layoutAnchor" value="NORTHWEST" />
        <modifier key="useHeadingPanel" value="yes" />
        <modifier key="headingLineCount" value="1" />
        <modifier key="headingFontSize" value="1.5" />
        <modifier key="headingBackgroundColor" value="0x00cccccc" />
        <modifier key="headingPanelCounter" value="text" />
        <modifier key="headingPanelCounterPos" value="inHeading" />
    </guiprefs>

    <!-- Locale.  In the wizard's opening prompt, the user will
         be able to choose one of the languages indicated by the
         list of language packs below. -->

    <locale>
        <langpack iso3="eng"/>
    </locale>

    <!-- Resources.  These are paths to resources used by various parts
         of the installer.  The resources are linked by unique IDs to
         be used by certain panels (see the <panels> section) -->

    <resources>
        <!-- Panels -->
        <!-- REMOVE PARSE ATTRIBUTE
        <res id="HTMLInfoPanel.info" src="@{app.build.dir}/ReadMe.html" />
        <res id="LicencePanel.licence" src="@{app.build.dir}/License.html" />
        <res id="TargetPanel.dir.windows" src="@{app.build.dir}/IzPackWindowsDefInstallPath.txt" />
        <res id="TargetPanel.dir.unix" src="@{app.build.dir}/IzPackUnixLinuxDefInstallPath.txt" />
        <res id="ProcessPanel.Spec.xml" src="@{app.build.dir}/IzPackPostInstallProcessing.xml" />
        <res id="XInfoPanel.info" src="@{app.build.dir}/IzPackPostInstallInfo.txt" />
        -->

        <res id="HTMLInfoPanel.info" src="@{app.build.dir}/ReadMe.html" parse="yes" />
        <res id="HTMLLicencePanel.licence" src="@{app.build.dir}/License.html" parse="yes" />
        <res id="TargetPanel.dir.windows" src="@{app.build.dir}/IzPackWindowsDefInstallPath.txt" parse="yes" />
        <res id="TargetPanel.dir.unix" src="@{app.build.dir}/IzPackUnixLinuxDefInstallPath.txt" parse="yes" />
        <res id="ProcessPanel.Spec.xml" src="@{app.build.dir}/IzPackPostInstallProcessing.xml" parse="yes" />
        <res id="XInfoPanel.info" src="@{app.build.dir}/IzPackPostInstallInfo.txt" parse="yes" />
        <!-- Image to display on the left side of each installer panel. -->
        <res id="Installer.image" src="@{app.build.dir}/tomcat.gif" />
    </resources>

    <!-- Wizard panels.  This section defines the workflow.  Indicate
         which panels to use and in which order.  Some panels may
         reference identifiers defined under the <resources> section.
         Note: See the "PANELS" documentation section below. -->

    <panels>
        <!-- Note: Using CheckedHelloPanel instead of Hello Panel makes it check
             the Windows Registry to see if the app is already installed, and
             if so, a confirm box pops up warning that it is already installed. -->
        <!-- COMMENT OUT REGISTRY STUFF -->
        <!-- <panel classname="CheckedHelloPanel"/> -->
        <panel classname="HelloPanel"/>
        <panel classname="HTMLInfoPanel"/>
        <panel classname="HTMLLicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="PacksPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="ProcessPanel"/>
        <panel classname="SimpleFinishPanel"/>
    </panels>

    <!-- Installation packs.  These are 'bundles' of files included
         in the installation kit.  The PacksPanel will list these and
         allow the user to choose which of them to install.  -->

    <packs>

        <pack name="Base" required="yes">
            <description>The base files</description>
            <file src="ReadMe.html" targetdir="${INSTALL_PATH}" override="true" />
            <file src="License.html" targetdir="${INSTALL_PATH}" override="true" />
            <file src="run_aaa.bat" targetdir="${INSTALL_PATH}" override="true" />
            <file src="run_bbb.bat" targetdir="${INSTALL_PATH}" override="true" />
            <file src="run_aaa.sh" targetdir="${INSTALL_PATH}" override="true" />
            <file src="run_bbb.sh" targetdir="${INSTALL_PATH}" override="true" />
            <file src="run_izpacktest.bat" targetdir="${INSTALL_PATH}" override="true" />
            <file src="run_izpacktest.sh" targetdir="${INSTALL_PATH}" override="true" />
            <fileset dir="../dist/bin" targetdir="${INSTALL_PATH}/bin" override="true" >
                <include name="**/*" />
            </fileset>
            <!-- The following files will be parsed for variable substitution -->
            <parsable targetfile="${INSTALL_PATH}/run_izpacktest.bat"/>
            <parsable type="shell" targetfile="${INSTALL_PATH}/run_izpacktest.sh"/>
            <parsable targetfile="${INSTALL_PATH}/run_aaa.bat"/>
            <parsable targetfile="${INSTALL_PATH}/run_bbb.bat"/>
            <parsable type="shell" targetfile="${INSTALL_PATH}/run_aaa.sh"/>
            <parsable type="shell" targetfile="${INSTALL_PATH}/run_bbb.sh"/>
        </pack>
        <pack name="Docs" required="no">
            <description>The documentation</description>
            <fileset dir="../dist/doc" targetdir="${INSTALL_PATH}/doc" override="true" >
                <include name="**/*" />
            </fileset>
        </pack>
    </packs>

    <!-- Declare listeners for Windows Registry support. -->

    <!-- RDGTEMP
    <listeners>
        <listener
            installer="RegistryInstallerListener"
            uninstaller="RegistryUninstallerListener" >
            <os family="windows" />
        </listener>
    </listeners>
    -->

    <!-- Declare DLL for Windows Registry support.  The JNI will
         interact with the registry via this DLL. -->

    <!-- RDGTEMP
    <native type="3rdparty" name="COIOSHelper.dll" stage="both">
        <os family="windows" />
    </native>
    -->

    <!-- The native Windows library required for creating shortcuts -->

    <native type="izpack" name="ShellLink.dll"></native>

    <!-- Allows you to bundle your custom extensions to IzPack
         alongside the IzPack code in the final installation JAR to
         your application (e.g. so you can have customized panels
         and integration). -->

    <!--
    <jar>
    </jar>
    -->

</installation>

