srihariram Posted March 7, 2011 Share Posted March 7, 2011 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 More sharing options...
maxXPsoft Posted March 7, 2011 Share Posted March 7, 2011 (edited) 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.butIf 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 March 7, 2011 by maxXPsoft Link to comment Share on other sites More sharing options...
srihariram Posted March 7, 2011 Author Share Posted March 7, 2011 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 More sharing options...
maxXPsoft Posted March 7, 2011 Share Posted March 7, 2011 can't install to a disk that is occupied, why do the winpe? I don't understand thatJust set your xml as above and it will wipe and install Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now