[izpack-users] how to run an Batch File

panneer selvam panneer.mca at gmail.com
Thu Oct 18 11:38:45 CEST 2007


hi vasanth,

try to execute the batch file seperatly to avoid any error may be
there in batch file.(testing).
and avoid using "\" ...
use "/" or "\\".

sample coding...........................

<packs>
<!-- The core files -->
<pack name="Core" required="yes">
<description>The IzPack core files.</description>
<file targetdir="$INSTALL_PATH" src="bin"/>
<file targetdir="$INSTALL_PATH" src="lib"/>
<file targetdir="$INSTALL_PATH" src="legal"/>
<file targetdir="$INSTALL_PATH" src="Readme.txt"/>
<file targetdir="$INSTALL_PATH" src="Versions.txt"/>
<file targetdir="$INSTALL_PATH" src="Thanks.txt"/>
<parsable targetfile="$INSTALL_PATH/bin/izpack-fe"/>
<parsable targetfile="$INSTALL_PATH/bin/izpack-fe.bat"/>
<parsable targetfile="$INSTALL_PATH/bin/compile"/>
<parsable targetfile="$INSTALL_PATH/bin/compile.bat"/>
<executable targetfile="$INSTALL_PATH/bin/compile" stage="never"/>
<executable targetfile="$INSTALL_PATH/bin/izpack-fe" stage="never"/>
</pack>
<!-- The documentation (1 directory) -->
<pack name="Documentation" required="no">
<description>The IzPack documentation (HTML and PDF).</description>
<file targetdir="$INSTALL_PATH" src="doc"/>
</pack>
</packs>

if u still facing problem, download the attachment. that is helpful for u

regards,
panneer











On 10/18/07, Vasanth <vasanthkumar.sono at gmail.com> wrote:
> Hi panner,
>
> i am still facing the problem,
>
> i've added the element but it is throwing some "*javaio.IOException : create
> process c:\aa\post.bat error=2"*
>
> can you post some full length* working *sample code, which executes a batch
> file.
> thanks for your time.
>
>
>
>
> On 10/15/07, panneer selvam <panneer.mca at gmail.com> wrote:
> >
> > hi vasanth,
> >
> > you have to add one more element in ur pack element like this,
> >
> > <executable targetfile="filename with loacation" stage="postinstall"
> > os="windows"/>
> >
> > regards,
> > Panneer
> >
> >
> > On 10/15/07, Vasanth <vasanthkumar.sono at gmail.com> wrote:
> > > 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 lists.berlios.de
> > https://lists.berlios.de/mailman/listinfo/izpack-users
> >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: izpack-doc.pdf
Type: application/pdf
Size: 560173 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/izpack-users/attachments/20071018/da481f63/attachment-0001.pdf 


More information about the izpack-users mailing list