User Guide

515
! Run Script in Win64 Process
Mark this if the script file is 64-bit. If the script file is 32-bit, leave this cleared.
(Available only in 64-bit installations.)
! Enter the VBScript to execute
! Type or paste the script text. Code elements, such as function names, declarations,
and values, are color-coded. You can use bracketed property names, table keys,
environment variable references, and other special substrings. See Formatted in the
Windows Installer SDK Help.
Also see:
Guidelines for Calling VBScripts and JScripts on page 502
Guidelines for Custom Action Location on page 499
Using the Custom Action Properties Tab on page 534
Using the Custom Action Location Tab on page 532
Custom Action Type 38 in the Windows Installer SDK Help
Call VBScript From Installation
This custom action stores a VBScript file in the Binary table of this installation file and
runs it during installation. During installation, the VBScript file is extracted to a
temporary directory, is run, and is deleted.
Tips
! Manage the file on the Resources page, which reflects the Binary table.
! Use the script to read and write properties to the installation.
! The destination computer must contain the script’s runtime.
Usage
Double-click the custom action and complete the Details tab:
! 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.
! Script File
Specify a script file from your hard drive or local network to call during installation.
! Script Function Call
(Optional.) Type the name of the function within the script to call.
! Run Script in Win64 Process
Mark this if the script file is 64-bit. If the script file is 32-bit, leave this cleared.
(Available only in 64-bit installations.)
Also see:
Guidelines for Calling VBScripts and JScripts on page 502
Guidelines for Custom Action Location on page 499
Using the Custom Action Properties Tab on page 534
Using the Custom Action Location Tab on page 532
Custom Action Type 6 in the Windows Installer SDK Help