[izpack-users] Problem with os specific installings

Bartz, Klaus Klaus.Bartz at coi.de
Fri Sep 1 09:11:59 CEST 2006

Hi Jacobo,
the os attribute declares operating system families. "linux" is near a OS name (should be written "Linux"), not a family.
If you need name dependencies you can use the element "os", but you use the attribute (with the
same name).
Read docu  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html> Writing Installation XML Files->  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html#SECTION00430000000000000000> The IZPACKElements ->  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html#SECTION00438000000000000000> The Packs Element <packs>  ->  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html#SECTION00438600000000000000> <file>- add files or directories 
 <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html> Writing Installation XML Files->  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html#SECTION00430000000000000000> The IZPACKElements ->  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html#SECTION00438000000000000000> The Packs Element <packs>  ->  <file:///P:/IzPack_trunk/src/doc-ng/XHTML/node4.html#SECTION004381100000000000000> <os>- make a file OS-dependent 
Why "mac" not work I do not know.

-----Original Message-----
From: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Jacobo García
Sent: Friday, September 01, 2006 1:19 AM
To: izpack-users at lists.berlios.de
Subject: [izpack-users] Problem with os specific installings


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">
    <appname>Hello World</appname>
      <author email=" jacobo at foobar.com" name="Jacobo García"/>
    <url> http://www.foobar.com  <http://www.foobar.com> </url>
  <guiprefs height="600" resizable="no" width="800"/>
    <langpack iso3="eng"/> 
    <res id="InfoPanel.info" src="/Users/jacobo/Desktop/export/tmp/readme.txt"/>
    <panel classname="HelloPanel"/> 
    <panel classname="InfoPanel"/>
    <panel classname="InstallPanel"/>
    <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"/> 

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/d1cc2fb6/attachment.html 

More information about the izpack-users mailing list