Skip to main content
Version: v3

Requires Element (Dependency Extension)

Description
Describes a dependency on a provider for the current component or package.
Windows Installer references
None
Parents
Bundle, Fragment, Module, Product, Provides
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
IdString Dependency requirement identity. If this attribute is not specified, an identifier will be generated automatically. If this element is not authored under a Provides element, this attribute is required.  
IncludeMaximumYesNoType Set to "yes" to make the range of dependency provider versions required include the value specified in Maximum.  
IncludeMinimumYesNoType Set to "yes" to make the range of dependency provider versions required include the value specified in Minimum.  
MaximumVersionType The maximum version of the dependency provider required to be installed. The default is unbound.  
MinimumVersionType The minimum version of the dependency provider required to be installed. The default is unbound.  
ProviderKeyString The unique registry key name for the dependency provider to require during installation of this product. Yes
Remarks

This element declares a dependency on any product that uses the Provides element. If that product is uninstalled before a product that requires it, the uninstall will err or warn the user that other products are installed which depend on that product. This behavior can be modified by changing the attribute values on the Requires element.

If you do not nest this element under a Provides element, you must specify the @Id attribute so that it can be referenced by a RequiresRef element nested under a Provides element.

How Tos and Examples
See Also
Dependency Schema, RequiresRef