Running a .VBS script with arguments from within NSIS script
Hello,
I have a .VBS script written which accepts input from commandline and updates another file accordingly. I found that executing a .VBS script from within NSIS script is bit different than running any other commands using Exec / ExecWait / nsExec::Exec.
Below is the command which I want to execute from NSIS script.
Updateini.vbs C:\TS_Installation\CustomPage\INIupdate\setup.iss szDir C:\Prak
Updateini.vbs is the file which want to execute with 3 parameters passed [Underlined], which I am able to execute from command prompt successfully.
Nsis syntax I tried:
ExecWait ' "$SYSTEM\CScript.exe" Updateini.vbs C:\TS_Installation\CustomPage\INIupdate\setup.iss szDir C:\Prak '
ExecWait ' "$SYSDIR\wscript.exe" Updateini.vbs C:\TS_Installation\CustomPage\INIupdate\setup.iss szDir C:\Prak '
ExecWait ' "cscript" Updateini.vbs C:\TS_Installation\CustomPage\INIupdate\setup.iss szDir C:\Prak '
I am just not getting it right with the NSIS syntax of executing .VBS script.
Could someone point out and tell me where I am going wrong?
Thanks in advance !!