[izpack-users] Passing arguments to executable

Zycor.net Development Solutions airhead at webmail.co.za
Thu Mar 29 11:24:50 CEST 2007


Bartz, Klaus wrote:
> Hi Riaan,
> in what config file do you have written the <pack> tag with the subtags?
>  
> Cheers
>  
> Klaus

Hi Klaus,

I'm specifying it in my ant build script for my app:

 From Ant Script:

....
<taskdef name="izpack"
        classpath="${installerBasedir}/libs/standalone-compiler.jar"
        classname="com.izforge.izpack.ant.IzPackTask" />
...
</target>
....
      <izpack output="${installerOutputdir}/Installer.jar"
            installerType="standard"
            basedir="${installerBasedir}">
            <config><![CDATA[
<installation version="1.0">
    <variables>
...
    </variables>
   
    <info>
   ...
    </info>
   ...
    <packs>
        ....
        <pack name="MSDE 2005" id="sqlExpress.package" required="no"
                installGroups="Stand Alone (Vista),Network Server (Vista)"
                loose="true">
            <description>The MS SQL Server Express</description>
                <file src="serverExpress" targetdir="$INSTALL_PATH"/>
                <executable
                    targetfile="$INSTALL_PATH/serverExpress/setup.exe"
                            stage="postinstall" keep="false" failure="warn">
                  <args>
                    <arg value="/qb" />
                    <arg value="INSTANCENAME=CORETALK" />
                    <arg value="ADDLOCAL=ALL" />
                    <arg value="SQLAUTOSTART=1" />
                    <arg value="AGTAUTOSTART=1" />
                    <arg value="SECURITYMODE=SQL" />
                    <arg value="SAPWD=root" />
                    <arg value="DISABLENETWORKPROTOCOLS=0" />
                  </args>
                </executable>
    </pack>       
    </packs>
    ...
</installation>
            ]]></config>
        </izpack>
...
</target>

Cheers
Riaan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070329/72e51497/attachment.html 


More information about the izpack-users mailing list