MainBundle

The MainBundle element specifies the information about the bundle package which includes name, publisher, version and uri.

Element hierarchy

<AppInstaller>
**MainBundle**

Syntax

<MainBundle 
    Name        = A string between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters.
    Publisher   = A string between 1 and 8192 characters in length that fits the regular expression of a distinguished name : "(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="<>#;])+|".*")))*". Further, semantic validation ensures that the string is compliant with CertNameToStr Windows API implementation of X.500 rules.
    Version     = A version string in quad notation, "Major.Minor.Build.Revision".
    Uri         = Uri to the app package location />

Attributes and Elements

Attributes

Attribute Description Data type Required
Name Name as specified in the identity element in the bundle manifest. The Name attribute is case-insensitive. A string between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters. Yes
Publisher Publisher as specified in the identity element in the bundle manifest. A string between 1 and 8192 characters in length that fits the regular expression of a distinguished name. Further, semantic validation ensures that the string is compliant with CertNameToStr Windows API implementation of X.500 rules. Yes
Version Version as specified in the identity element in the bundle manifest. A version string in quad notation, "Major.Minor.Build.Revision". Yes
Uri Uri to the app package location URI as a string between 1 and 2084 characters in length. Yes

Parent Elements

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

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).

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