Running VB Script files during installation
Status: Inactive
Brought to you by:
bhenden
I am preparing a installation for one of our project. During the installation process I am able to run some batch files. But I am not able to run the VB Script files i.e. vbs file. I am writing following line of code for running the script.
Exec(ExpandConstant('{app}\Start.vbs'), '', '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
Please let me know the way I can resolve the problem.
Logged In: YES
user_id=491371
Originator: NO
Try this instead:
Exec(ExpandConstant('{sys}\wscript.exe'), ExpandConstant('{app}\Start.vbs'), '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
I guess your problem was that start.vbs is not an executable, therefore you need to start the correct executable with your script as parameter instead.