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?
VisualBasicScript - seem doesnt work
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.
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
InstallAware MVP
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:

