We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

a.guelle
Posts: 98
Joined: Tue May 19, 2015 2:23 pm

[solved] Custom Action: Piping output of VBS to file

Hi guys,

Lets' assume you have a custom action that runs a batch file:

MyBat.bat

Code: Select all

echo Hello World
You are now able pipe this out put to a file when putting "> myFile.txt" to the Command line arguments.

If your batch file calls a VBS file that produces your output with

MyBat.bat

Code: Select all

CScript MyVBS.vbs
MyVBS.vbs

Code: Select all

WScript.echo "Hello World"
it does not write anything to myFile.txt. Any ideas?
Last edited by a.guelle on Wed Jun 24, 2015 9:19 am, edited 1 time in total.
a.guelle
Posts: 98
Joined: Tue May 19, 2015 2:23 pm

Re: Custom Action: Piping output of VBS to file

Ok It works. My Custom action Execution Stage was set to "Maintenance" instead of "Install".

Return to “Common Problems”