[izpack-devel] I have a problem in executing a *.bat file
Valentin Vlasceanu
vali254 at yahoo.com
Wed Dec 20 10:10:43 CET 2006
Hi,
And thanks for answering, but in the meanwhile I
resolved the problem.
I hat to put inside the bat file the following two
lines:
c:
cd c:\$INSTAL_PATH
After that the path is set correctly to the new
installed program and the bat file is lanched without
error.
Thanks again,
Vali
--- Klaus Bartz <bartzkau at gmx.net> wrote:
> Hi Vali (?)
> normaly the simplest way is to use <executable> with
> $INSTALL_PATH. You have done it. May be something is
> wrong in
> the dclaration, serfore please send your installatn
> description file
> (often called install.xml)
>
> Cheers
>
> Klaus
>
>
> Am 18.12.2006, 17:32 Uhr, schrieb vali254
> <vali254 at yahoo.com>:
>
> >
> > Hi!
> >
> > I am new at IzPack (3.9.0 version ) and I would
> appriciate if you could
> > help
> > me in the following problem.
> >
> > I want to execute a *.bat file postinstall. The
> *.bat file contains
> > different variables, wich after the parsing they
> are all correctly
> > replaced.
> > But when the installer tries to execute the *.bat
> file I receive an error
> > (process execution failed).
> >
> > The problem I observed is that when I try to
> execute the file from where
> > it
> > was installed, there is no error, it runs
> corectly. But the installer is
> > trying to execute the file from the path where is
> the installer.
> > For example, the instaler is placed in
> D:\INSTALLER and the installed
> > program is placed in C:\TEST.
> > Well the *.bat is executed like:
> >
> > D:\INSTALLER> java âclasspath
> C:\TEST\something.jar; name_of_java_file
> > var1
> > var2 â¦. varn
> >
> > I have tried to execute the file using the
> <executable> command from
> > install.xml ( <executable
> targetfile="$INSTALL_PATH\name_of_bat_file.bat"
> > failure="warn" stage="postinstall"/>) and the
> <executefile> command form
> > ProcessPanel.Spec.xml (<executefile
> > name="$INSTALL_PATH\name_of_bat_file.bat"/>), but
> neither of the chioces
> > worked. In both cases I receive the same error.
> >
> > So this is my problem and it seems I am doing
> something wrong, but I
> > can't
> > see where. If you think you would need more
> details donât hesitate to
> > tell
> > me and thank you for your time and help.
> >
>
>
>
> --
> Erstellt mit Operas revolutionärem E-Mail-Modul:
> http://www.opera.com/mail/
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
>
https://lists.berlios.de/mailman/listinfo/izpack-devel
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the izpack-devel
mailing list