Menu

#2 Running VB Script files during installation

closed
nobody
5
2007-10-18
2007-10-18
Anonymous
No

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.

Discussion

  • Bjornar Henden

    Bjornar Henden - 2007-10-18
    • status: open --> closed
     
  • Bjornar Henden

    Bjornar Henden - 2007-10-18

    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.

     

Log in to post a comment.