<installation version="1.0">

  <info>
    <appname>Test</appname>
    <appversion>0</appversion>
    <appsubpath>new_installation</appsubpath>
    <javaversion>1.5</javaversion>
    <uninstaller write="no"/>
    <writeinstallationinformation>no</writeinstallationinformation>
  </info>

  <guiprefs width="640" height="480" resizable="no">
    <modifier key="labelGap" value="2"/>
    <modifier key="useHeadingPanel" value="yes"/>
    <modifier key="useHeadingForSummary" value="yes"/>
    <modifier key="headingLineCount" value="1"/>
    <modifier key="headingFontSize" value="1.5"/>
    <modifier key="headingBackgroundColor" value="0x00ffffff"/>
    <modifier key="headingPanelCounter" value="text"/>
    <modifier key="headingPanelCounterPos" value="inHeading"/>
  </guiprefs>

  <variables>
    <variable name="PlainTest" value="Plain Text"/>
    <variable name="PlainTest.Env" value="${ENV[PATH]}"/>
  </variables>

  <dynamicvariables>
    <variable name="PlainTest.ResolveVar" value="Plain Text and ${PlainTest} and ${PlainTest.Env}"
              ignorefailure="false"/>
    <variable name="EnvTest.New" environment="PATH"/>
    <variable name="RegExTest.Select" value="package.ABC.name" checkonce="true">
      <regex regexp="package\.([^\.]*)\.name"
             select="\1"
             defaultValue="(unmatched)"
             casesensitive="false"/>
    </variable>
    <variable name="RegExTest.ReplaceFirst" value="package.ABC.name" checkonce="true">
      <regex regexp="(package)\.[^\.]*\.(name)"
             replace="\1.DEF.\2"
             defaultValue="(unmatched)"
             casesensitive="false"
             global="false"/>
    </variable>
    <variable name="RegExTest.ReplaceAll" value="a.b.abc.abc" checkonce="true">
      <regex regexp="(\.)abc"
             replace="\1def"
             defaultValue="(unmatched)"
             casesensitive="false"
             global="true"/>
    </variable>
    <variable name="RegExTest.Select.Unix" value="${ENV[PATH]}" checkonce="true">
      <regex regexp="([^\:]*)(.*)"
             select="\1"
             defaultValue="(unmatched)"
             casesensitive="false"/>
    </variable>
    <variable name="RegExTest.ReplaceFirst.Unix" value="${ENV[PATH]}" checkonce="true">
      <regex regexp="([^\:]*)"
             replace="+++ \1 +++"
             defaultValue="(unmatched)"
             casesensitive="false"
             global="false"/>
    </variable>
    <variable name="RegExTest.ReplaceAll.Unix" value="${ENV[PATH]}" checkonce="true">
      <regex regexp="([^\:]*)"
             replace="+++ \1 +++"
             defaultValue="(unmatched)"
             casesensitive="false"
             global="true"/>
    </variable>
    <variable name="PropertiesReadTest.1" checkonce="true"
              file="${INSTALL_PATH}/../old_installation/test.properties" type="properties"
              key="first.setting"/>
    <variable name="PropertiesReadTest.2" checkonce="true"
              file="${INSTALL_PATH}/../old_installation/test.conf" type="properties"
              key="work.dir"/>
    <variable name="INIReadTest" checkonce="true"
              file="${INSTALL_PATH}/../old_installation/test.ini" type="ini"
              section="SSH server" key="SSHCMD"/>

    <variable name="XMLReadTest.1" checkonce="true" ignorefailure="false"
              file="${SYSTEM_INSTALL_PATH}/../old_installation/test.xml" type="xml"
              key="/installations/installation[path='/usr/local']/title[@lang='en']/text()"/>
    <variable name="XMLReadTest.2" checkonce="true" ignorefailure="false"
              file="${SYSTEM_INSTALL_PATH}/../old_installation/test.xml" type="xml"
              key="//title[@lang='en']/text()"/>

    <!--
    <variable name="RegistryReadTest" checkonce="true"
              regkey="HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"
              regvalue="Path"/>
    <variable name="RegExTest.Select.Windows" checkonce="true"
              regkey="HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"
              regvalue="Path">
      <regex regexp="([^;]*)(.*)"
             select="\1"
             defaultValue="(unmatched)"
             casesensitive="false"/>
    </variable>
    <variable name="RegExTest.ReplaceFirst.Windows" checkonce="true"
              regkey="HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"
              regvalue="Path">
      <regex regexp="([^;]*)"
             replace="+++ \1 +++"
             defaultValue="(unmatched)"
             casesensitive="false"
             global="false"/>
    </variable>
    <variable name="RegExTest.ReplaceAll.Windows" checkonce="true"
              regkey="HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"
              regvalue="Path">
      <regex regexp="([^;]*)"
             replace="+++ \1 +++"
             defaultValue="(unmatched)"
             casesensitive="false"
             global="true"/>
    </variable>
      -->
  </dynamicvariables>

  <locale>
    <langpack iso3="eng"/>
  </locale>

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

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

</installation>

