Windows Installer Editor Reference
483
Custom Action Reference
Run WiseScript From Destination
This custom action runs a WiseScript .EXE that already resides on the destination
computer.
If you use both WiseScript and Windows Installer technology, you can integrate them
with this custom action. Use this to leverage past WiseScripts or to gain access to
unique WiseScript technology.
Tips
z
In the WiseScript, use special script actions—Get Windows Installer Property, Set
Windows Installer Property, and Evaluate Windows Installer Condition—to
communicate between the Windows Installer installation and the WiseScript. For
details, see the WiseScript documentation.
z
If the WiseScript being called uses a Set Windows Installer Property action, place
this custom action in the User Interface or Execute Immediate sequence.
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
WiseScript .EXE File
Specify an executable file on the destination computer that was compiled in a
WiseScript editing tool. You must type a path to the file using a predefined directory
name, such as [CommonFilesFolder], to specify the location on the destination
computer. A trailing slash after a predefined directory name is not necessary.
Example: [INSTALLDIR]Directory\Setup.exe.
z
Options button
This is unavailable for this custom action.
z
Command Line
(Optional) Enter the command-line options to send to the .EXE. Example: Enter /s
to make the WiseScript run silently. For a list of valid command-line options, see the
WiseScript documentation.
See also:
Examples of WiseScripts You Run From an .MSI
on page 448
Calling WiseScripts with Custom Actions
on page 447
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
Troubleshooting: When WiseScript Custom Actions Fail on Windows Vista or later
on
page 452
Run WiseScript From Installation
This custom action stores a WiseScript .EXE in the Binary table of this installation file
and runs it during installation.