共用方式為


s4:Bundle

Description

指定套件組合套件的相關信息。 (s4:Bundle)

元素階層

s4:AppInstaller

     s4:OptionalPackages

          <s4:Bundle>

     s4:RelatedPackages

          <s4:Bundle>

     s4:相依性

          <s4:Bundle>

Syntax

<s4:Bundle     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:Bundle>

屬性

屬性 描述 資料類型 必要
名稱 套件組合名稱,如套件組合指令清單中的識別專案所指定。 Name 屬性不區分大小寫。 長度介於 3 到 50 個字元之間的字串,其中包含英數位、句號和虛線字元。 Yes
Publisher 發行者,如套件組合指令清單中的身分識別專案所指定。 長度介於 1 到 8192 個字元之間的字串,其符合辨別名稱的正則表示式。 Yes
版本 版本,如套件組合指令清單中的身分識別專案所指定。 四次表示法中的版本字串,“Major.Minor.Build.Revision”,其中 Major 不能是 “0”。 Yes
Uri 應用程式套件位置的 URI。 Web URI 作為長度介於 1 到 2084 個字元之間的字串。 Yes

父項目

父項目 Description
s4:OptionalPackages 指定將隨主要套件一起安裝的選擇性套件。
s4:RelatedPackages 指定相關的套件。 這些套件不會安裝為部署作業的一部分。
s4:相依性 這些相依性會視需要安裝。

規格需求

需求
xmlns:s4=http://schemas.microsoft.com/appx/appinstaller/2021 Windows 版本 21H2 組建 22000 中引進的功能需要此命名空間
最低 OS 版本 Windows 版本 21H2 組建 22000