s4:MainBundle

Description

Specifies the information about the main bundle package. (s4:MainBundle)

Element Hierarchy

s4:AppInstaller

     <s4:MainBundle>

Syntax

<s4:MainBundle     Name = A string with a value between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters.
    Publisher = A string with a value between 1 and 8192 characters in length that fits the regular expression  of a distinguished name.
    Version = A version string in quad notation, "Major.Minor.Build.Revision" where Major cannot be "0".
    Uri = Web URI as a string between 1 and 2084 characters in length.
></s4:MainBundle>

Attributes

Attribute Description Data type Required
Name The bundle name, as specified in the identity element in the bundle manifest. The Name attribute is case-insensitive. A string with a value between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters. Yes
Publisher The publisher, as specified in the identity element in the bundle manifest. A string with a value between 1 and 8192 characters in length that fits the regular expression of a distinguished name. Yes
Version The version, as specified in the identity element in the bundle manifest. A version string in quad notation, "Major.Minor.Build.Revision" where Major cannot be "0". Yes
Uri Uri to the app package location. Web URI as a string between 1 and 2084 characters in length. Yes

Parent Elements

Parent Elements Description
s4:AppInstaller Defines the root element of an AppInstaller file.

Remarks

Only one of either <MainBundle> or <MainPackage> can be declared in the <AppInstaller> element.

The <MainBundle> element should only be used for app package bundles (.appxbundle).

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