提交多区域设置设备清单包Submit a Multiple-locale device manifest package

提交多区域设置设备清单包Submitting a multiple-locale device manifest package

你可以使用相同的方法提交用于预览或发布的包。You can use the same method to submit packages for preview or release.

提交设备清单包To submit a device manifest package

  1. 使用 SignTool 工具对 devicemanifest-ms 程序包进行签名。Sign the devicemanifest-ms package with the SignTool tool.

  2. 从硬件开发人员中心或 Windows 开发人员中心,使用 Microsoft 帐户登录到“仪表板”*Sign in to the *Dashboard from either the Hardware Dev Center or the Windows Dev Center by using a Microsoft account.

  3. 在“设备元数据”*下,单击“创建体验”(如果你希望提交新体验),或单击“管理体验”(如果你希望修改现有体验)。Under *Device metadata, click Create experience if you want to submit a new experience, or click Manage experience if you want to modify an existing experience.

  4. 浏览并选择你的新 devicemanifest-ms 程序包,然后单击“提交”*Browse for and select your new devicemanifest-ms package, and then click *Submit.

创建设备清单提交程序包Creating a Device Manifest Submission Package

设备清单提交程序包是必须将所有多区域设置设备元数据提交到硬件开发人员中心仪表板的程序包格式。A device manifest submission package is the package format in which all multi-locale device metadata must be submitted to the Hardware Dev Center Dashboard.

设备清单提交程序包包含声明区域设置支持的文件。The device manifest submission package contains a file that declares locale support. 设备清单包还包含设备元数据包。The device manifest package also includes a device metadata package.

设备清单提交程序包可以采用与设备元数据包相同的方式上载到硬件开发人员中心仪表板。Device manifest submission packages can be uploaded to the Hardware Dev Center Dashboard in the same way as device metadata packages. 使用相同的用户界面和上载框,输入你要上载的 *.devicemanifest-ms 文件的名称。Using the same user interface and upload boxes, you enter the name of your *.devicemanifest-ms file for upload.

仪表板的用户界面上批量上载以外的所有文件上载框都将接受设备清单提交包。All file upload boxes other than bulk upload on the Dashboard’s user interface will accept device manifest submission packages.

设备清单提交程序包内容Device Manifest Submission Package Contents

每个设备清单提交包都包含以下组成部分:Each device manifest submission package consists of the following components:

  • 设备元数据包Device metadata package

    此包包含用于在 Windows 中显示设备图标、设置操作及使用设备体验功能的信息和图片。This package contains information and graphics to display device icons, set actions, and utilize device experience features in Windows.

    设备元数据包始终必需。The device metadata package is always required.

  • LocaleInfo XML 文档LocaleInfo XML document

    此文档包含有关包含在附带设备元数据包中的区域设置的数据。This document contains data about the locales included in the accompanying device metadata package. 硬件开发人员中心使用此数据来正确验证一个或多个区域设置的设备元数据包。The Hardware Dev Center uses this data to properly validate the device metadata package for one or more locales.

    LocaleInfo XML 文档始终是必需的,即使设备元数据包仅包含单个区域设置。The LocaleInfo XML document is always required, even if the device metadata package only contains a single locale.

设备清单提交包的结构Structure of a Device Manifest Submission Package

设备清单包的结构取决于包含的设备元数据用于电脑、用于移动宽带还是包含对多个区域设置的支持。The structure of a device manifest package depends on whether the included device metadata is for a PC, for mobile broadband, or contains support for multiple locales.

如果设备元数据不属于这三个类别中的任何一个,则不需要设备清单包。If the device metadata does not fall into any of the three categories, a device manifest package is not necessary. 但是,设备清单包仍然可用于指示设备元数据包是用于单个区域设置的。However, a device manifest package can still be used to indicate the device metadata package is for a single locale.

多区域设置设备清单提交包的结构Structure of Multi-locale Device Manifest Submission Packages

即使你的设备元数据包包含用于支持多个区域设置的信息,仍然必须在设备清单包中提交它。If your device metadata package contains information for supporting multiple locales, it must still be submitted in a device manifest package.

设备清单提交包的组成部分存储在压缩的 Cab 文件中。The components of a device manifest submission package are stored in a compressed cabinet file. 该文件名必须具有后缀 .devicemanifest-ms。The file name must have a suffix of .devicemanifest-ms.

每个设备清单提交包都必须具有以下结构:Each device manifest submission package must have the following structure:

GUID1.devicemanifest-ms
\GUID1.devicemetadata-ms
\LocaleInfo.xml

“GUID1”必须是一个 GUID。“GUID1” must be a GUID.

下面是有关创建 LocaleInfo.xml 的说明。Instructions on creating LocaleInfo.xml are below.

若要了解如何开发设备元数据包 *.devicemetadata-ms,请参阅 Windows 8 的设备元数据包架构参考To learn how to develop the device metadata package, *.devicemetadata-ms, see Device Metadata Package Schema Reference for Windows 8.

你可以使用 Cabarc 工具创建这些 CAB 程序包。You can use the Cabarc tool to create these CAB packages. 有关此工具的详细信息,请参阅 Cabarc 概述For more information about this tool, see Cabarc overview.

使用 Cabarc 工具创建 *.devicemanifest-ms 文件时,你必须创建一个本地目录,其中设备元数据包 (*.devicemetadata-ms) 和 LocaleInfo XML 文档位于该目录的根目录中。When you create a *.devicemanifest-ms file by using the Cabarc tool, you must create a local directory in which the device metadata package (*.devicemetadata-ms) and the LocaleInfo XML document are at the root of the directory.

备注Remarks

  • .devicemanifest -ms 和 .devicemetadata-ms 文件名必须指定不带花括号 ({}) 分隔符的 GUID。The .devicemanifest -ms and .devicemetadata-ms filenames must specify the GUID without the curly brace ({}) delimiters.

  • 每个设备清单提交和设备元数据包的 GUID 都必须唯一。The GUID for each device manifest submission and device metadata package must be unique. 当你创建新的或修改的程序包时,必须创建新 GUID。When you create a new or revised package, you must create a new GUID.

  • 有关如何创建 cabinet 文件的详细信息,请参阅 Microsoft Cabinet 软件开发工具包For more details about how to create cabinet files, see the Microsoft Cabinet Software Development Kit.

示例Example

下面是如何使用 Cabarc 工具创建 .devicemanifest-ms 文件的示例。The following is an example of how to use the Cabarc tool to create a .devicemanifest-ms file. 在此示例中,设备清单文件的组成部分位于名为 DeviceManifestPackages 的本地目录中:In this example, the components of the device manifest file are located in a local directory that is named DeviceManifestPackages:

.\DeviceManifestPackages\
.\DeviceManifestPackages\LocaleInfo.xml
.\DeviceManifestPackages\GUID.devicemetadata-ms

GUID.devicemanifest-ms 文件在名为 ManifestFiles 的本地目录中创建:The GUID.devicemanifest-ms file was created in a local directory that is named ManifestFiles:

Cabarc.exe -r -p -P  .\DeviceManifestPackages\ 
N .\ManifestFiles\ GUID.devicemanifest-ms 
.\DeviceManifestPackages\LocaleInfo.xml
.\DeviceManifestPackages\GUID.devicemetadata-ms

创建 LocaleInfo.xmlCreating LocaleInfo.xml

有关创建用于提交的 Localeinfo.xml 文件的信息,请参阅创建 LocaleInfo.xml 提交文件For information about creating the Localeinfo.xml file for submission, see Create the LocaleInfo.xml Submission File.

向 Microsoft 发送有关该主题的评论Send comments about this topic to Microsoft