Windows Installer Editor Reference
537
Custom Action Reference
unavailable if the WiseScript .EXE File field is empty or if a corresponding
.WSE file does not exist for the specified .EXE file.
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 499
Calling WiseScripts with Custom Actions
on page 498
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
Troubleshooting: When WiseScript Custom Actions Fail on Windows Vista or later
on
page 503
Set Directory
This custom action sets a new value for a directory property. Example: Set a new value
for a directory based on end user input during installation.
For a tutorial that demonstrates this custom action, refer to the Getting Started Guide.
Tips
z
For best results, place this action in the User Interface or Execute Immediate
sequence.
z
On the Properties tab, the In-Script Options and Processing drop-down lists are
unavailable for this custom action.
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
Directory
Specify the directory to change the value of. It must be a directory you added to this
installation or a predefined Windows system directory, which appears when you
browse. Do not enclose the directory property with brackets.
z
Directory Value
Enter the new path of the directory. You can use property and directory names by
enclosing them in brackets. Example: To indicate a directory named Data in the
installation directory, enter:
[INSTALLDIR]Data
See also:
Guidelines for Custom Action Location
on page 505
Using the Custom Action Properties Tab
on page 542