Windows Installer Editor Reference
486
Custom Action Reference
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
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.
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 454
Using the Custom Action Properties Tab
on page 490
Using the Custom Action Location Tab
on page 488
Custom Action Type 35 in the Windows Installer SDK Help
Set Feature State
This custom action sets the installation state of a feature at run time. The installation
state determines how or whether a feature is installed. Example: Use this custom action
to omit features during upgrade of limited versions of the product.
On the Set Feature State dialog box, select the feature from Feature, then mark an
installation state option for that feature.