[izpack-users] Problem with os specific installings

Jacobo García jacobo.garcia at gmail.com
Fri Sep 1 01:18:35 CEST 2006


Hello,

I'm creating an installer that does only have to copy a folder (which
contains the application) to the specified install location, this folder is
different depending on what operating system is being installed the
application (different compilations in different folders), there is one
source folder for each operating system too.

In doc says that you can use os attribute to restrict the instalation of one
file to only one operating system.  And this way is how I generated my
izpack install.xml

Here is the izpack xml code:

<?xml version="1.0" encoding="UTF-8"?>
<installation version="1.0">
  <info>
    <appname>Hello World</appname>
    <appversion>1.2</appversion>
    <authors>
      <author email="jacobo at foobar.com" name="Jacobo García"/>
    </authors>
    <url>http://www.foobar.com</url>
    <javaversion>1.5</javaversion>
  </info>
  <guiprefs height="600" resizable="no" width="800"/>
  <locale>
    <langpack iso3="eng"/>
  </locale>
  <resources>
    <res id="InfoPanel.info"
src="/Users/jacobo/Desktop/export/tmp/readme.txt"/>
  </resources>
  <panels>
    <panel classname="HelloPanel"/>
    <panel classname="InfoPanel"/>
    <panel classname="InstallPanel"/>
  </panels>
  <packs>
    <pack name="Main" required="yes">
      <description>Main Pack that does all the installation</description>
      <file os="linux" override="true"
src="/Users/jacobo/Desktop/export/linux.gtk.x86" targetdir="/opt/Hello
World"/>
      <file os="windows" override="true"
src="/Users/jacobo/Desktop/export/win32.win32.x86" targetdir="c:\Program
Files\Hello World"/>
      <file os="mac" override="true"
src="/Users/jacobo/Desktop/export/macosx.carbon.x86"
targetdir="/Applications/Hello World"/>
    </pack>
  </packs>
</installation>

The problem comes when I run the installer and by default it installs me the
linux and mac versions. I am running Mac OS X.

It is not enough with this os attribute?, should I do separate packs for
every compilation?


-- 
Jacobo García López de Araujo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20060901/1f23a929/attachment.html 


More information about the izpack-users mailing list