TonyDS
22nd December 2003 02:32 UTC
Batch file won't work
Hi I have a batch file, which is executed with my installer but when its run all I get is
The system can't find the path specified
But if I run the same bat file from the dir it's install too it works fine
Anyone knows what could be wrong
I've checked that paths are correct and that the files which the bat file runs are in the correct temp folders and that the bat file paths are fine.
I'm using this command in my script
ExecWait "$INSTDIR\In.bat"
Comm@nder21
22nd December 2003 09:35 UTC
could u post u'r batch-file here?
Afrow UK
22nd December 2003 10:20 UTC
Maybe you are not setting the working directory before hand.
Use SetOutPath $INSTDIR
-Stu
kichik
22nd December 2003 11:35 UTC
You should quote:
ExecWait '"$INSTDIR\In.bat"'
and use SetOutPath as Afrow said, so that the executable referred to in the batch file can be found.
TonyDS
22nd December 2003 15:20 UTC
Ok that worked thanks Kichik :)
Thanks again to everyone
And Merry Christmas