MSI Factory 2.3

Run VBScript

Run VBScript

Previous topic Next topic  

Run VBScript

Previous topic Next topic  

MSI Factory

Creates a custom action that runs a VBScript file. Corresponds to Windows Installer custom action types 6, 22 and 54.

See the Attributes tab for more details about scheduling, run options and return values.

Location

Internal binary

If selected, the VBScript file (.vbs) will be stored in and called from the Binary table of your Windows Installer database.

Source file:

The full path and filename of the VBScript file on your local development system. You can click the Browse button to select a file.

Installed with product

If selected, the VBScript file is a file that you are installing with your software. In this case, the timing of the action (see the Attributes tab) must adhere to the following rules:

1. The custom action must be sequenced after the CostFinalize action. This is so that the custom action can resolve the path needed to locate the script.

2. If the source file is not already installed on the computer, deferred (in-script) custom actions of this type must be sequenced after the InstallFiles action.

3. If the source file is not already installed on the computer, non-deferred custom actions of this type must be sequenced after the InstallFinalize action.

File ID:

The identifier of the script file in your project. You can click the Browse button to select an identifier.

Inline

If selected, the literal VBScript text will be specified. You should only use this option for very short, single line scripts.

Script:

The literal script text to run. For example:

MsgBox "INSTALLDIR=" & Property("INSTALLDIR")

Options

Function to call:

The name of the VBScript function to call. Only valid if Location is "Internal binary" or "Installed with product."

Win64

If checked, the script targets a 64-bit platform.

More Information

MSDN Online: 64-Bit Custom Actions

MSDN Online: CustomAction Table

MSDN Online: Custom Action Type 6

MSDN Online: Custom Action Type 22

MSDN Online: Custom Action Type 54

MSDN Online: Scripting

MSDN Online: Scripts

MSDN Online: Summary List of All Custom Action Types

WiX Help File: CustomAction Element


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us