View Full Version : Run a batch file with arguements

11-06-2009, 06:25 PM
Hello All,

I am a total newbie . I tried doing variety of solutions on the forum but nothing worked :mad: .

In custom actions I am using "After File Transfer" and creating a new exe

Source Location:File exists on target computer
File Location: [SystemFolder]
file name and command line:
"[SystemFolder]cmd.exe" /c "[INSTALLDIR]install.bat [DATABASEDIR]file"

wait for action: yes
ignore exit code: no

i have the install.bat in [installdir] and file in [databasedir]
while brunning it gives me an error
File [SystemFolder] not found Cannot stream the file into binary mode. error code -1024.

Any help would be appreciated.



11-09-2009, 05:33 AM
pass [SystemFolder] in the arguments in place of [SystemFolder112].

11-10-2009, 10:44 AM
oops ... I did that only..... I passed [systemfolder] only in he arguements..... That was a typo ... sorry for that