Run JavaScript & VBScript

Run JavaScript & VBScript

Runs JavaScript or VBScript programs. It allows to write the output strings into a variable or a script window.

Description
Optionally, you may add comments here describing the purpose of this element.
Path
Choose the path to a JavaScript or VBScript file.
APPLICATION DATA PATH - Program subfolder in Application Data folder.
CDROM PATH - CD or DVD drive.
CUSTOM PATH - The path must be defined in the filename control.
INSTALL PATH - Default installation path.
SETUP FILE PATH - The path where setup executable file is run.
SYSTEM PATH - Windows system directory.
TEMPORARY PATH - Windows temporary directory.
WINDOWS PATH - Windows directory.
Filename
Specify the JavaScript or VBScript to be executed. It must be .js or .vbs file.
Command-Line parameters
Specify the command line parameters here.
-a -s "#mypar#" 
Working Directory
A working directory for the JavaScript or VBScript file being started.
APPLICATION DATA PATH - Program subfolder in Application Data folder.
CDROM PATH - CD or DVD drive.
CUSTOM PATH - The path must be defined in the filename control.
DEFAULT PATH - The current directory is the working one.
INSTALL PATH - Default installation path.
SETUP FILE PATH - The path where setup executable file is run.
SYSTEM PATH - Windows system directory.
TEMPORARY PATH - Windows temporary directory.
WINDOWS PATH - Windows directory.
Custom Path
If you use a CUSTOM PATH, the specific directory must be specified here.
Type
GUI - run the script as a GUI application
Console - run the script as a console application
Console Redirect to: Result variable - run the script as a console application and redirect its output into the variable
Result variable
The name of the variable the console output will be written to. Also, you can check runok variable. It equals 1 if the application has been executed successfully.
myvalue 
If Condition
You can specify a condition that should be met for the action to be performed. See If Condition for Wizard for more details. If the condition is FALSE then the command is skipped. See How to use If Condition for more details.