[izpack-users] how to run an Batch File

Ajay Kumar Gour ajay.g at s7solutions.com
Wed Feb 13 07:55:39 CET 2008


Hi Vasantha/Bhavya,

Do you want to run the batch file as post-installation task?

If yes, that's how you can do it (Following text is from installer.xml) - 

    <packs>
        <pack name="Base" required="yes">
            <description>Test Installation</description>
            <file src="Readme.txt" targetdir="$INSTALL_PATH"/>
            <file src="License.txt" targetdir="$INSTALL_PATH"/>
            <file src="MyBatchFile.bat" targetdir="$INSTALL_PATH"/>
            <file src="myapplication.jar" targetdir="$INSTALL_PATH"/>
            <file src="lib" targetdir="$INSTALL_PATH"/>
             <parsable targetfile="$INSTALL_PATH/MyBatchFile.bat"
stage="never"/>
             <executable targetfile="$INSTALL_PATH/MybatchFile.bat"
stage="postinstall"/>
    </packs>

Regards,
-Ajay


-----Original Message-----
From: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of bhavya
Sent: 13 February 2008 11:52
To: izpack-users at lists.berlios.de
Subject: Re: [izpack-users] how to run an Batch File









Vasanth <vasanthkumar.sono at ...> writes:

> 
> 
>  
> Hi, 
>  
> i was trying to run a batch file , please find the process code below :
>  
> <processing>
> <job name="Install PostGreSQL ">              <os family="windows"
/>            <executefile name="$INSTALL_PATH/postgresql-8.2-int.bat
> "/> </job></processing>
> please find below the pack code in the install.xml
> <pack name="Batchfile" required="yes">           <description>Batch
file</description>            <file src="../installers/postgresql-
> 8.2-int.bat" targetdir="$INSTALL_PATH"/>  </pack>
>  
> please let me know where am i going wrong.
>  
> problem is - it is not picking the MSI file from the INSTALL_PATH. 
>  
>  
>  
> 
> 
> _______________________________________________
> izpack-users mailing list
> izpack-users at ...
> https://lists.berlios.de/mailman/listinfo/izpack-users
> 
hi vasanth,

did u find the solution i am also facing the same problem
if so pls mail the solution at bhavyas at g-c-i.com
regards,
bhavya



_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users



More information about the izpack-users mailing list