Can I use Run Program command to execute a batch command? I have a Run Program command after Apply Install with the purpose to install and start a Windows service, it doesn't seem to work. [The service and the batch file are installed properly. And manually run the batch works just fine.]
My code looks like:
Run Program $TARGETDIR$\\myServiceFolder\\Install_Start_Service.bat (Wait)
Thanks,
William X.
Run Program using batch command?
Is the CWD correct?
Just a thought as I heard and found out that the current working directory doesn't seem to always be correct with the run program command. Sometimes people have to call a kernel32 function before executing to set the cwd. But as you run a batch, maybe it's enough to insert some lines like that at the front of the batch :
C:
cd "C:\\Program files\\myProg"
C:
cd "C:\\Program files\\myProg"

