OverviewExamples
Calls the MsiSetFeatureAttributes function that can modify the default attributes of a feature at runtime.
(number) The handle to the install.
Note: _hInstall is the default for this parameter. See Global Variables for more information.
(string) The name of the feature within the product.
(number) Feature attributes specified at run time as a set of bit flags:
CONSTANT |
VALUE |
DESCRIPTION |
INSTALLFEATUREATTRIBUTE_FAVORLOCAL |
1 |
Modifies default feature attributes to msidbFeatureAttributesFavorLocal at run time. See Attributes column of the Feature table for a description. |
INSTALLFEATUREATTRIBUTE_FAVORSOURCE |
2 |
Modifies default feature attributes to msidbFeatureAttributesFavorSource at run time. See Attributes column of the Feature table for a description. |
INSTALLFEATUREATTRIBUTE_FOLLOWPARENT |
4 |
Modifies default feature attributes to msidbFeatureAttributesFollowParent at run time. Note that this is not a valid attribute to be set for top-level features. See Attributes column of the Feature table for a description. |
INSTALLFEATUREATTRIBUTE_FAVORADVERTISE |
8 |
Modifies default feature attributes to msidbFeatureAttributesFavorAdvertise at run time. See Attributes column of the Feature table for a description. |
INSTALLFEATUREATTRIBUTE_DISALLOWADVERTISE |
16 |
Modifies default feature attributes to msidbFeatureAttributesDisallowAdvertise at run time. See Attributes column of the Feature table for a description. |
INSTALLFEATUREATTRIBUTE_NOUNSUPPORTEDADVERTISE |
32 |
Modifies default feature attributes to msidbFeatureAttributesNoUnsupportedAdvertise at run time. See Attributes column of the Feature table for a description. |
(boolean) Returns true if the action succeeds to set the feature attributes. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions