Archive: Batch file won't work


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"


could u post u'r batch-file here?


Maybe you are not setting the working directory before hand.

Use SetOutPath $INSTDIR

-Stu


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.


Ok that worked thanks Kichik :)

Thanks again to everyone

And Merry Christmas