[izpack-users] How to access INSTALL_PATH in process panel

Loïc lbndev at yahoo.fr
Fri Sep 14 00:07:08 CEST 2007

Sujay Kher a écrit :
> I want to execute window batch file in process panel which looks like
> <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
> <processing>
> 	<job name="do xyz">
> 		<os family="windows" />
> 			<executefile 				name="$INSTALL_PATH\InstaAlert2\script\SetEnv.bat">
> 				<arg>doit</arg><arg>$variable</arg>
> 			</executefile>
> 	</job>
> </processing>
> I want this INSTALL_PATH in SetEnv.bat file, so I can use this path to set
> ENVIRONMENT VARIABLE. Hope this will clear.
Your processPanelSpec is allright.
Try the following :

    * either pass $INSTALL_PATH as an argument to your batch file, by
      adding a <arg>$INSTALL_PATH</arg> to your executefile tag
    * or use the $INSTALL_PATH variable directly inside your SetEnv.bat,
      and add a reference to it in a <parsable> tag in your main XML
      installation file (in the pack to which the SetEnv.bat belongs,
      just below the fileset definition including it).

Hope this helps,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070914/3f23140a/attachment.html 

More information about the izpack-users mailing list