捆绑 (应用安装程序架构)
Bundle 元素指定有关捆绑包的信息。
元素层次结构
- <AppInstaller>
-
- <依赖项>
- <束>
语法
<Bundle
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 />
特性和元素
特性
属性 | 说明 | 数据类型 | 必须 |
---|---|---|---|
名称 | 在捆绑清单的 identity 元素中指定的名称。 Name 属性不区分大小写。 | 长度介于 3 到 50 个字符之间的字符串,由字母数字、句点和短划线字符组成。 | 是 |
Publisher | 在捆绑包清单的 identity 元素中指定的发布服务器。 | 长度介于 1 到 8192 个字符之间的字符串,适合可分辨名称的正则表达式。 此外,语义验证可确保字符串符合 X.500 规则的 CertNameToStr Windows API 实现。 | 是 |
版本 | 在捆绑清单的 identity 元素中指定的版本。 | 四边形表示法“Major.Minor.Build.Revision”的版本字符串。 | 是 |
Uri | 应用包位置的 URI | URI 作为长度介于 1 到 2084 个字符之间的字符串。 | 是 |
父元素
父元素 | 说明 |
---|---|
OptionalPackages | 指定可选的 pacakg |
RelatedPackages | 指定相关包。 不会安装这些包。 |
依赖项 | 如果需要,将安装这些依赖项。 |
要求
要求 | 说明 |
---|---|
xmlns=http://schemas.microsoft.com/appx/appinstaller/2017 |
Windows 10版本 1709 中引入的功能需要此命名空间。 |
最低操作系统版本 | Windows 10 版本 1709 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈