InstallToInstallTo
InstallTo
指定要安裝資料映像的位置。InstallTo
specifies the location to which to install a data image.
子項目Child Elements
設定Setting | 描述Description |
---|---|
DiskIDDiskID | 指定要安裝資料映像磁碟的識別碼。Specifies the identification number of the disk on which to install the data image. |
PartitionIDPartitionID | 指定要安裝資料映像的磁碟分割的識別碼。Specifies the identification number of the partition on which to install the data image. |
有效的設定階段Valid Configuration Passes
windowsPEwindowsPE
父階層Parent Hierarchy
Microsoft-Windows-Setup | ImageInstall | DataImage | InstallToMicrosoft-Windows-Setup | ImageInstall | DataImage | InstallTo
套用至Applies To
如需支援的 Windows 版本與此元件支援的架構,請參閱Microsoft Windows 安裝程式。For a list of the supported 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>