RelatedPackages

An optional element that is used to specify the other optional packages that are specified in the main app package. These packages will not be installed as part of the deployment operation.

Element hierarchy

<AppInstaller>
**RelatedPackages**

Syntax

<RelatedPackages>

  <!-- Child elements -->
  ( Bundle{0,10000}
  | Package{0,10000}
  )
</RelatedPackages>

Key

{}   specific range of occurrences

Attributes and Elements

Attributes

None

Child Elements

Child Elements Description
Bundle Element that includes information about the app bundle. The child elements of this element requires an exact match of the name, publisher and version from the identity element in the app package bundle manifest.
Package Element that includes information about the package. This elements requires an exact match of the name, publisher and version from the identity element in the app package manifest. ProcessorArchitecture is an optional element.

Parent Elements

Parent Elements Description
AppInstaller The root element of the appinstaller document.

Remarks

The RelatedPackages element defines the app packages that are specified in the main app pacakge but will not be installed along with the main app. There can be more than one child element defined inside the RelatedPackages element. If the app is packaged as .appx then use the Package, and if the app is packaged as .appxbundle then use the Bundle element.

Examples

The following example is taken from a sample appinstaller file. The Uri location doesn't exist.

    <RelatedPackages>
        <Bundle
            Name="Fabrikam.RelatedApp1"
            Publisher="CN=Contoso"
            Version="2.23.12.43"
            Uri="http://mywebservice.azurewebsites.net/RelatedApp1.appxbundle" />

        <Package
            Name="Fabrikam.RelatedApp2"
            Publisher="CN=Fabrikam"
            Version="10.34.54.23"
            ProcessorArchitecture="x64"
            Uri="http://mywebservice.azurewebsites.net/RelatedApp2.appx" />

    </RelatedPackages>

Requirements

Requirement Description
xmlns=http://schemas.microsoft.com/appx/appinstaller/2017 This namespace is required for features introduced in Windows 10, version 1709.
Minimum OS version Windows 10, version 1709