Skip to main content
Version: v3

ComponentRef Element

Description
Create a reference to a Feature element in another Fragment.
Windows Installer references
None
Parents
ComponentGroup, Feature, FeatureGroup, FeatureRef, Module, PatchFamily
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
IdStringThe identifier of the Component element to reference.Yes
PrimaryYesNoType Set this attribute to 'yes' in order to make the parent feature of this component the primary feature for this component. Components may belong to multiple features. By designating a feature as the primary feature of a component, you ensure that whenever a component is selected for install-on-demand (IOD), the primary feature will be the one to install it. This attribute should only be set if a component actually nests under multiple features. If a component nests under only one feature, that feature is the primary feature for the component. You cannot set more than one feature as the primary feature of a given component.  
Any Attribute (namespace='##other' processContents='lax') Extensibility point in the WiX XML Schema. Schema extensions can register additional attributes at this point in the schema.
How Tos and Examples
See Also
Wix Schema, Component