應用程式安裝程式架構) (套件組合

組合元素會指定套件組合套件的相關資訊。

元素階層

<AppInstaller>
<OptionalPackages>
<套件組合>
<RelatedPackages>
<套件組合>
<相依性>
<套件組合>

語法

<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 />

屬性和項目

屬性

屬性 描述 資料類型 必要
Name 組合資訊清單中 identity 元素所指定的名稱。 Name 屬性不區分大小寫。 長度介於3到50個字元之間的字串,由英數位元、句號和虛線字元所組成。 Yes
Publisher Publisher,如套件組合資訊清單中的 identity 元素所指定。 介於1到8192個字元之間的字串,長度符合辨別名稱的正則運算式。 此外,語意驗證可確保字串符合 CertNameToStr Windows API 實作為500規則的規範。 Yes
版本 套件組合資訊清單中 identity 元素所指定的版本。 四個標記法中的版本字串: Yes
Uri 應用程式套件位置的 Uri URI,以介於1到2084個字元之間的字串長度。 Yes

父項目

父項目 描述
OptionalPackages 指定選擇性套件
RelatedPackages 指定相關的封裝。 不會安裝這些套件。
Dependencies (相依性) 這些是需要時才會安裝的相依性。

需求

Namespace http://schemas.microsoft.com/appx/appinstaller/2017