[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 
versus
 <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.
 
Cheers
 
Klaus

-----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


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


More information about the izpack-users mailing list