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

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


Yogesh,

I'm positive about that.
I use both methods on my projects, they run under Windows and linux 
without problems. Of course you have to use a job with each <os family> 
you want to support, with the appropriate script each time.

Regards,

Loïc

Yogesh Jankee a écrit :
> Hi Suraj,
>     I dont know if you are aiming at having an installer which will be 
> supported both on Linux and Windows platform. If so, please do let me 
> know if you are able to get the installer work on linux with the 
> method described by Loic below;
>
> Regards,
>
> -- 
> Jankee Yogesh
> Team Leader
> M-ITC LTD
> http://www.m-itc.net
>
>    
>
> Loïc wrote:
>> 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,
>>
>> Loïc
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/izpack-users
>>   
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
>   

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


More information about the izpack-users mailing list