Windows Installer Editor Reference
538
Custom Action Reference
Using the Custom Action Location Tab
on page 539
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.
Tips
z
This custom action has restrictions on its placement, indicated by shaded areas in
the Installation Sequence.
z
If you set a feature to run from source and the files are compressed, Windows
Installer sets the feature to run from the local drive.
z
For information on how Windows Installer sets feature states when features share
components, see MsiSetFeatureState in the Windows Installer SDK Help.
See also:
Configuring a Feature Using Its Drop-Down List
on page 114
Configuring a Feature Using the Feature Details Dialog
on page 116
Guidelines for Custom Action Location
on page 505
Set Property
This custom action sets a Windows Installer property. This custom action is useful for
setting a property based on end user input or on system configuration.
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
Property
Select a property from the list, or enter a new property name. Do not enclose this
property name with brackets.
z
Property Value
Enter the value to set the property to. Because this value is of the data type
Formatted, you can use property and directory names by enclosing them in