Windows Installer Editor Reference
519
Custom Action Reference
Tips
z
Manage the file on the Resources page, which reflects the Binary table.
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
Script File
Specify a script file from your hard drive or local network to call during installation.
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 507
Guidelines for Custom Action Location
on page 505
Using the Custom Action Properties Tab
on page 542
Using the Custom Action Location Tab
on page 539
Custom Action Type 5 in the Windows Installer SDK Help
Call JScript From Installed Files
This custom action runs code from a JScript file that is installed by this installation. Use
this to call the script file during installation, while leaving the file on the destination
computer as part of the installation.
Tips
z
Before you add this custom action, add the file to be called to the Files page in
Installation Expert.
z
Shaded areas of MSI Script indicate restricted placement for this custom action;
because this custom action calls an installed file, it must run after files are installed.
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.