密钥 (imageinstall-dataimage-installfrom-metadata-key) Key (microsoft-windows-setup-imageinstall-dataimage-installfrom-metadata-key)

Key 指定是否使用映像索引、名称或说明指定 Windows 映像中的映像的元数据 () 文件。Key specifies whether the image index, name, or description is used to specify the metadata for an image in a Windows image (.wim) file. 有关使用此设置的信息,请参阅 元数据For information about using this setting, see MetaData.

Values

Key 的值Values for Key 说明Description

/IMAGE/INDEX/IMAGE/INDEX

使用索引号选择要安装的映像。Uses the index number to select the image to install.

/IMAGE/NAME/IMAGE/NAME

使用索引名称选择要安装的映像。Uses the index name to select the image to install.

/IMAGE/DESCRIPTION/IMAGE/DESCRIPTION

使用索引说明选择要安装的映像。Uses the index description to select the image to install.

该字符串类型不支持空元素。This string type does not support empty elements. 请勿为该设置创建空值。Do not create an empty value for this setting.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

microsoft-windows-设置- | ImageInstall | DataImage | InstallFrom | 元数据 | microsoft-windows-setup- | ImageInstall | DataImage | InstallFrom | MetaData | Key

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 microsoft-安装-For a list of the Windows editions and architectures that this component supports, see microsoft-windows-setup-.

XML 示例XML Examples

下面的 XML 输出显示了如何 MetaData 使用映像索引值将设置配置为安装特定数据映像。The following XML output shows how to configure the MetaData setting to install a specific data image by using the image index value.

            <MetaData wcm:action="add">
                <Key>/IMAGE/INDEX</Key>
                <Value>1</Value>
            </MetaData>

以下 XML 输出显示了如何将设置配置 MetaData 为使用映像名称安装特定的数据映像。The following XML output shows how to configure the MetaData setting to install a specific data image using the image name.

            <MetaData wcm:action="add">
                <Key>/IMAGE/NAME</Key>
                <Value>FNB2Drivers</Value>
            </MetaData>

以下 XML 输出显示了如何将设置配置 MetaData 为使用映像说明来安装特定的数据映像。The following XML output shows how to configure the MetaData setting to install a specific data image by using the image description.

            <MetaData wcm:action="add">
                <Key>/IMAGE/DESCRIPTION</Key>
                <Value>FabriKam Model FNB3 Drivers</Value>
            </MetaData>

MetaDataMetaData

Value