InstallTo
InstallTo
specifies the disk and partition where you install the Windows image. For unattended installations, you must specify either InstallTo
or InstallToAvailablePartition.
You must specify valid values for DiskID and PartitionID. If you are installing to a blank disk, you must create and format partitions with the CreatePartitions and ModifyPartitions settings.
Note
If you specify a location in InstallTo
, do not set InstallToAvailablePartition. If InstallTo
is specified, and if InstallToAvailablePartition
is set to true, and if WillShowUI is set to Never, then an error is logged, and installation is terminated.
Child Elements
Specifies the disk identifier of the hard disk on which to install Windows. |
|
Specifies the partition identifier of the partition on which to install Windows. |
Valid Passes
Parent Hierarchy
Microsoft-Windows-Setup | ImageInstall | OSImage | InstallTo
Applies To
For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.
XML Example
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>
</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>