s4:OptionalPackages
Description
Specifies the optional packages that will be installed along with the main package. (s4:OptionalPackages)
Element Hierarchy
<s4:OptionalPackages>
Syntax
<s4:OptionalPackages>
<!-- Child elements -->
( Bundle{0,10000}
| Package{0,10000}
)
</s4:OptionalPackages>
Key
{}
specific range of occurrences
Child Elements
Element | Description |
---|---|
Package | Specifies the information about a package, including name, publisher, version and uri. |
Bundle | Specifies the information about a bundle, including name, publisher, version and uri. |
Parent Elements
Parent Elements | Description |
---|---|
s4:AppInstaller | Defines the root element of an AppInstaller file. |
Remarks
The <OptionalPackages>
element defines the app packages that will be installed along with the main app. There can be more than one child element defined inside the <OptionalPackages>
element. If the optional app is packaged as .appx then use the <Package>
, and if the optional app is packaged as .appxbundle then use the <Bundle>
element.
Examples
<s4:OptionalPackages>
<s4:Bundle
Name="Contoso.OptionalApp1"
Publisher="CN=Contoso"
Version="2.23.12.43"
Uri="http://mywebservice.azurewebsites.net/OptionalApp1.appxbundle" />
<s4:Bundle
Name="Contoso.OptionalApp2"
Publisher="CN=Contoso"
Version="2.23.12.43"
Uri="http://mywebservice.azurewebsites.net/OptionalApp2.appxbundle" />
<s4:Package
Name="Fabrikam.OptionalApp3"
Publisher="CN=Fabrikam"
Version="10.34.54.23"
ProcessorArchitecture="x64"
Uri="http://mywebservice.azurewebsites.net/OptionalApp3.appx" />
</s4:OptionalPackages>
Requirements
Requirement | Value |
---|---|
xmlns:s4=http://schemas.microsoft.com/appx/appinstaller/2021 |
This namespace is required for features introduced in Windows version 21H2 build 22000 |
Minimum OS version | Windows version 21H2 build 22000 |