VisualBasicScript - seem doesnt work

Got a problem you cannot solve? Try here.
Post Reply
Bar_BQ
Posts: 99
Joined: Fri Aug 22, 2008 5:45 am

VisualBasicScript - seem doesnt work

Post by Bar_BQ »

I'm trying to run a visual basic script through the function "Run program as" with command:

wscript.exe $SUPPORTDIR$\\my_script.vbs

That script should generate a text file, but it looks it doesn't work. The script itself works fine.

Could anybody help?
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Post by bokkie »

Bar_BQ,

Does it write output to the DOS window? If so, you might need to redirect the output to a text file and read that in your MSIcode. I don't recall the syntax to hand but something like:

wscript.exe $SUPPORTDIR$\\my_script.vbs > C:\\Temp\\my_output.txt

If your script writes to a text file directly then you can certainly read that file as well.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
Bar_BQ
Posts: 99
Joined: Fri Aug 22, 2008 5:45 am

Post by Bar_BQ »

Thank you bokkie for easy solution :)
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Post by bokkie »

Bar_BQ wrote:Thank you bokkie for easy solution :)
You're welcome. You can send the $5K fee to me. :lol:
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
bmenot
Posts: 11
Joined: Thu Aug 07, 2008 3:49 am

Post by bmenot »

does this actually work? what i mean is, does the redirection work outside the command shell?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

The shell is just cmd.exe which has command line parameters suitable for your requirements viewable by running cmd.exe /?.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply