InstallFrom (imageinstall-dataimage-InstallFrom) InstallFrom (microsoft-windows-setup-imageinstall-dataimage-installfrom)

InstallFrom 指定要安装的数据映像的路径以及用于访问该映像的凭据。InstallFrom specifies the path to the data image to install, and the credentials to access the image. 该路径可以是本地路径或网络路径。The path can be either a local or a network path. 如果数据映像位于本地路径,则不需要提供任何凭据。If the data image is in a local path, no credentials are required.

子元素Child Elements

设置Setting 说明Description
凭据Credentials 可选。Optional. 指定用于访问数据映像的凭据。Specifies the credentials to access the data image.
MetaDataMetaData 必需。Required. 指定要从 Windows 映像 ( .wim) 文件选择唯一数据映像的元数据。Specifies metadata to select a unique data image from the Windows image (.wim) file.
路径Path 必需。Required. 指定要安装的数据映像的路径。Specifies the path to the data image to install.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

Microsoft-Windows-设置 | ImageInstall | DataImage | InstallFromMicrosoft-Windows-Setup | ImageInstall | DataImage | InstallFrom

适用于Applies To

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

XML 示例XML Example

以下 XML 输出显示了如何设置 ImageInstall 安装操作系统映像和数据映像的设置。The following XML output shows how to set the ImageInstall setting to install both an operating system image and a data image.

<ImageInstall>
    <OSImage>
        <InstallFrom>
            <Credentials>
                <Domain>FabrikamDomain</Domain>
                <Password>MyPassword</Password>
                <Username>MyUsername</Username>
            </Credentials>
            <Path>\\networkshare\share\install.wim</Path>
            <MetaData wcm:action="add">
                <Key>/IMAGE/NAME</Key>
                <Value>FabrikamCustomOSImage</Value>
            </MetaData>
        </InstallFrom>
        <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>1</PartitionID>
        </InstallTo>
        <WillShowUI>OnError</WillShowUI>
        <InstallToAvailablePartition>false</InstallToAvailablePartition>
    </OSImage>
    <DataImage wcm:action="add">
        <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>2</PartitionID>
        </InstallTo>
        <InstallFrom>
            <Credentials>
                <Domain>FabrikamDomain</Domain>
                <Password>MyPassword</Password>
                <Username>MyUsername</Username>
            </Credentials>
            <Path>\\networkshare\share\data.wim</Path>
            <MetaData wcm:action="add">
                <Key>/IMAGE/NAME</Key>
                <Value>FabrikamData</Value>
            </MetaData>
        </InstallFrom>
        <Order>1</Order>
    </DataImage>
</ImageInstall>

DataImageDataImage