<RelatedProducts> Element (ClickOnce Bootstrapper)
This documentation is archived and is not being maintained.

<RelatedProducts> Element (ClickOnce Bootstrapper) 

The RelatedProducts element defines other products that either depend upon or are included in the current product.


<RelatedProducts>
    <DependsOnProduct
        Code
    >
    <IncludesProduct
        Code
    >
</RelatedProducts>

The RelatedProducts element is a child of the Product element. It has no attributes.

The DependsOnProduct element signifies that the current product depends upon the named product, and that the named product should be installed before the current one. It is a child of the RelatedProducts element. A RelatedProducts element might have one or more DependsOnProduct elements.

DependsOnProduct has the following attribute.

Attribute Description

Code

The code name of the included product, as specified by the ProductCode attribute of the Product element. For more information, see <Product> Element (ClickOnce Bootstrapper).

The IncludesProduct element signifies that a product is included with the current install, and does not require a separate installation. It is a child of the RelatedProducts element. A RelatedProducts element might have one or more IncludesProduct elements.

IncludesProduct has the following attribute.

Attribute Description

Code

The code name of the included product, as specified by the ProductCode attribute of the Product element. For more information, see <Product> Element (ClickOnce Bootstrapper).

The following code example specifies that the Microsoft Installer is installed with the .NET Framework, and therefore will not need a separate installation.

<RelatedProducts>
    <IncludesProduct Code="Microsoft.Windows.Installer.2.0" />
</RelatedProducts>
Show:
© 2016 Microsoft