Run JavaScript & VBScript
Runs JavaScript or VBScript programs. It allows for writing 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 to where setup executable file is running.
SYSTEM PATH - Windows system directory.
TEMPORARY PATH - The temporary folder of the installation #tempinstpath#. It is a subfolder genteeXX in the default temporary user's folder #temppath#.
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.
INSTALL PATH - Default installation path.
SETUP FILE PATH - The path to where setup executable file is running.
SYSTEM PATH - Windows system directory.
TEMPORARY PATH - The temporary directory of the installation #tempinstpath#. It is a subfolder genteeXX in the default temporary user's folder #temppath#.
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 the 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. If the condition is false then the command is skipped. See How to use If Condition for more details.

Run JavaScript & VBScript command