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

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

Fri Jun 05, 2015 10:11 am

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: 97
Joined: Tue May 19, 2015 2:23 pm

Re: Custom Action: Piping output of VBS to file

Fri Jun 05, 2015 10:28 am

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

Return to “Common Problems”