[izpack-users] how to run an Batch File

Dennis Reil Dennis.Reil at reddot.de
Thu Oct 18 15:02:12 CEST 2007


Vasanth,

as I told you some days ago, there's a tool called msiexec.exe which
will be used to trigger the installation of an .msi-file. So all you
have to do is to execute msiexec /i PATH_TO_MSIFILE. This can be done
with the Processpanel.

 

<processing>

   <job name="installmsi">

       <os family="windows"/>   

       <executefile name="msiexec.exe">

      <arg>/i</arg>

      <arg>abc.msi</arg>

 </executefile>

  </job>

</processing>

 

 

Regards, 

 

   Dennis

 

Von: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von Vasanth
Gesendet: Donnerstag, 18. Oktober 2007 12:58
An: izpack-users at lists.berlios.de
Betreff: Re: [izpack-users] how to run an Batch File

 

 

hey panner, 

 

thanks for the reply man . me too following the same doc that u've sent
me. now this is some real problem i guess. 

 

my batch file has "abc.msi" file in it. when i try to execute the batch
file, the installation of MSi file should be triggered - this is my
requirement.

 

the reason y 've gone for batch file is i dont know how to trigger the
installation of MSI file. i've posted the same in the forum, but no
help.



 

On 10/18/07, panneer selvam <panneer.mca at gmail.com> wrote: 

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 
> >
>

_______________________________________________
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/20071018/f915e9a2/attachment-0001.html 


More information about the izpack-users mailing list