[izpack-users] Passing arguments to executable

Bartz, Klaus Klaus.Bartz at coi.de
Thu Mar 29 11:46:59 CEST 2007


Hi Riaan,
I do not know whether your problems can be triggert by using an inlined
install.xml.
My be writte an external install.xml and refer it in your IzPack call in
the ant script.
 
Call the installation in a cmd like
java -DTRACE=TRUE -jar install.jar
and look to the output. The call command will be written on stdout (and
much more).
 
Cheers
 
Klaus
 
 -----Original Message-----
From: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of Zycor.net
Development Solutions
Sent: Thursday, March 29, 2007 11:25 AM
To: izpack-users at lists.berlios.de
Subject: Re: [izpack-users] Passing arguments to executable



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


More information about the izpack-users mailing list