Windows Installer Editor Reference
469
Custom Action Reference
See Standard Actions Reference in the Windows Installer SDK Help.
z
Script File
Specify a script file to call during installation. It must have already been added to
this installation on the Files page.
z
Script Function Call
(Optional.) Type the name of the function within the script to call.
z
Run Script in Win64 Process
(64-bit installations only.) Mark this if the script needs to access 64-bit functionality
and run in a 64-bit process.
See also:
Guidelines for Calling VBScripts and JScripts
on page 456
Guidelines for Custom Action Location
on page 454
Using the Custom Action Properties Tab
on page 490
Using the Custom Action Location Tab
on page 488
Custom Action Type 21 in the Windows Installer SDK Help
Call JScript From Property
This custom action runs JScript code that is stored inside a Windows Installer property.
You might store the script in a property if part or all of the script needs to be generated
dynamically based on end user input or system configuration.
Tips
z
The script is limited to 32 Kb, which is the size limit for Windows Installer properties.
z
Use the script to read and write properties to the installation.
z
The destination computer must contain the script’s runtime.
Usage
Double-click the custom action and complete the Details tab:
z
Custom Action Name
Enter a unique name that begins with a letter or underscore. It can contain numbers
and periods. It must not match the name of any Windows Installer standard action.
See Standard Actions Reference in the Windows Installer SDK Help.
z
Property
Specify a property that stores the script, either by selecting a property or typing a
new property name. Elsewhere in the installation, you must provide a mechanism
for populating this property with the script text.
z
Script Function Call
(Optional.) Type the name of the function within the script to call.
z
Run Script in Win64 Process
(64-bit installations only.) Mark this if the script needs to access 64-bit functionality
and run in a 64-bit process.
See also:
Guidelines for Calling VBScripts and JScripts
on page 456