[izpack-users] Problem with os specific installings

Jacobo García jacobo.garcia at gmail.com
Fri Sep 1 20:47:42 CEST 2006


Ok, is it working now. I found this part rather confusing on manual :)

Thank you very much.

On 9/1/06, Bartz, Klaus <Klaus.Bartz at coi.de> wrote:
>
>  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 Writing Installation XML Files->The IZPACKElements -> The Packs
> Element <packs>  -> <file>- add files or directories
> versus
> Writing Installation XML Files->The IZPACKElements -> The Packs Element
> <packs>  -> <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 </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
>
>
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
>
>
>


-- 
Jacobo García López de Araujo
blog: http://robotplaysguitar.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20060901/557e7063/attachment.html 


More information about the izpack-users mailing list