Jump to content

Intall windows on disk from which it is booting.


Recommended Posts

Hi,

how to install windows onto disk from which it is booting.

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

I am doing an unattended installation. I copied boot.wim on particular disk and will boot from that disk. after booting the unattended installation starts. In answer file we need to specify the disk and partition on which OS gets installed. Is there any way to default option to install on the booted partition instead of providing diskid and partitionid in answer file.

thanks...

Link to comment
Share on other sites


The InstallToAvailablePartition setting specifies whether to install the Windows operating system to the first available partition that has enough space and does not already contain an installation of Windows.

but

If you are installing Windows to a blank disk, you must create and format partitions with the CreatePartitions and ModifyPartitions settings, and set one of the partitions as the active partition. After the partitions are created and formatted, using the InstallToAvailablePartition setting will select the first available partition with enough space to install Windows.

Edit knew you would ask how

<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<ModifyPartitions>
<ModifyPartition>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Active>true</Active>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Type>Primary</Type>
<Order>1</Order>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Value>Windows Vista ULTIMATE</Value>
<Key>IMAGE/NAME</Key>
</MetaData>
</InstallFrom>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>Never</WillShowUI>
</OSImage>
</ImageInstall>
</component>

Edited by maxXPsoft
Link to comment
Share on other sites

thanks for the reply..

question is that, i already have a partition which is formatted and copied winpe on it and it boots through that partition. Now i want to install os on the partition from which it has booted, without specifying the diskID or partitionID in autounattend.xml.

thanks..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...