[izpack-users] example of one install.xml

Miraodb miraodb at hotmail.com
Wed Mar 29 16:36:46 CEST 2006


Hi,

I thought the docu was good enough ;-)
Anyway,

in install.xml:

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<installation version="1.0">

    <info>
        <appname>You appname</appname>
        <appversion>5.6.4c Built 2005-12-09</appversion>
        <authors>
            <author name="Your Team" email=support at yourhost. />
        </authors>
        <url>http:\\www.axiomsl.com</url>

<summarylogfilepath>$INSTALL_PATH/installinfo/Summary.htm</summarylogfilepat
h>
    </info>


    <guiprefs width="800" height="600" resizable="yes">
      <laf name="liquid">
         <os family="windows" />
      </laf>
      <modifier key="useFlags" value="yes" />
      <modifier key="langDisplayType" value="native" />
    </guiprefs>

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

    <native type="izpack" name="ShellLink.dll"/>

    <resources>
   <res src="YourLgoo.jpg" id="installer.langsel.img"/>

   <res id="shortcutSpec.xml" src="myshortcutspec.xml" />
   <res src="VBS.jpg" id="ImgPacksPanel.img.0" /><!-- vbs -->
   <res src="border1.png" id="Installer.image.0"/>
   <res src="border2.png" id="Installer.image.1"/>
   <res src="border3.png" id="Installer.image.2"/>
   <res src="newborder5.png" id="Installer.image.3"/>
   <res src="newborder4.png" id="Installer.image.4"/>
   <res src="border6.png" id="Installer.image.5"/>
   <res src="border7.png" id="Installer.image.6"/>
   <res src="border8.png" id="Installer.image.7"/>
   <res src="TargetPathLin.txt" id="TargetPanel.dir.unix" />
   <res src="TargetPathWin.txt" id="TargetPanel.dir.windows" />
    </resources>


    <panels>
        <panel classname="HelloPanel"/>
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="ImgPacksPanel"/>
        <panel classname="SummaryPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="ShortcutPanel"/>
        <panel classname="FinishPanel"/>
    </panels>

    <listeners>
  <listener installer="SummaryLoggerInstallerListener"/>
        <listener installer="RegistryInstallerListener"
uninstaller="RegistryUninstallerListener">
   <os family="windows"/>
  </listener>
 </listeners>

<packs>
 <pack name="VBSCript Batchs" id="vbsscritps" preselected="no" required="no"
os="windows">
     <description>VBSCript Batchs</description>

     <file src="uninstaller.bat" targetdir="$INSTALL_PATH\Uninstaller"/>
        <file src="uninstall.ico" targetdir="$INSTALL_PATH\Uninstaller"/>
        <parsable targetfile="$INSTALL_PATH\Uninstaller\uninstaller.bat"/>

  <singlefile src="axiom_apps\abn\axiom_app\client\bin\client.vbs"
target="$INSTALL_PATH\axiom_batch\axiom_app\client\bin\client.vbs"/>

     <singlefile src="batch\client.vbs"
target="$INSTALL_PATH\batch\client.vbs"/>
     <parsable targetfile="$INSTALL_PATH\batch\clientAxiom.vbs"/>

     <singlefile src="batch/WinClear.bat"
target="$INSTALL_PATH\batch\WinClear.bat"/>
     <parsable targetfile="$INSTALL_PATH\batch\WinClear.bat"/>
     <singlefile src="batch/vbsrename.bat"
target="$INSTALL_PATH\batch\vbsrename.bat"/>
     <parsable targetfile="$INSTALL_PATH\batch\vbsrename.bat"/>
 </pack>
</packs>
</installation>

Then you need a myshortcutspec.xml:

<shortcuts>
 <skipIfNotSupported/>
 <programGroup defaultName="YourApp" location="applications/startMenu"/>
  <shortcut os="windows" name="YourApp VBS Client"
target="$INSTALL_PATH\batch\client_$srvnamesc.vbs" commandLine=""
workingDirectory="$INSTALL_PATH\batch\" description="Launch Client"
iconFile="$INSTALL_PATH\batch\axiom.ico" iconIndex="0" initialState="normal"
programGroup="yes" desktop="no" applications="no" startMenu="no"
startup="no">
  <createForPack name="VBSCript Batchs"/>
 </shortcut>
</shorcuts>


That's it.

Hope that helps,
fabrice

----- Original Message ----- 
From: "thyago guimaraes" <thyago_guimaraes at yahoo.com.br>
To: <izpack-users at berlios.de>
Sent: Wednesday, March 29, 2006 3:56 PM
Subject: [izpack-users] example of one install.xml


> hello, I would like see an example install.xml with shortcuts
>
>
> ---------------------------------
>  Yahoo! doce lar. Faça do Yahoo! sua homepage.





More information about the izpack-users mailing list