New
#1
DiskConfiguration WillWipeDisk does not work with WillShowUI=Always
I'm trying to put together a baseline autounattend.xml for initial installation. I want the install to be as hands-free as possible, but still "safe" in the sense that I don't want a USB stick to accidentally get booted and wipe a working computer.
So, I have the DiskConfiguration set up with the necessary partitions. In addition, I have WillWipeDisk=true on the disk and WillShowUI=Alwasy on the DiskConfiguration.
If I keep WillShowUI=OnError, everything works fine, by which I mean:
1. Whatever disk partitions are in place are wiped out.
2. The partitions specified in the autounattend are created.
3. Windows is installed.
All hands-free.
However, if I make the single change of setting WillShowUI=Always (what I really want), then I find the following:
1. If there are pre-existing partitions on the disk, the UI stops at the partitioning part of setup and shows the existing (not the planned) partition table.
2. If I just click "Next" it fails.
3. If I delete all the partitions and click "Next" it fails.
The failure error message is something like "Windows could not prepare the partition selected for installation."
Then, when I click OK and it reboots, the installation proceeds the same way, this time showing the new partitions at the partitioning part of setup. When I click Next, it all works.
How can I get it to stop at partitioning (to give someone the chance to turn off the computer and avoid destroying a working system), but if the user selects to proceed, it really does just wipe the disk and set up the partitions it needs?
Here is the WinPE part of my autounattend.xml:
Thanks in advance for any help/insight.Code:<settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" 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"> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <InputLocale>en-US</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale>en-US</UserLocale> </component> <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"> <UserData> <ProductKey> <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> <AcceptEula>true</AcceptEula> <FullName>RND</FullName> <Organization>RND</Organization> </UserData> <EnableNetwork>false</EnableNetwork> <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>500</Size> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Size>100</Size> <Type>EFI</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>3</Order> <Size>16</Size> <Type>MSR</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>4</Order> <Extend>true</Extend> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Order>1</Order> <PartitionID>1</PartitionID> <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID> <Label>WinRE</Label> <Format>NTFS</Format> </ModifyPartition> <ModifyPartition wcm:action="add"> <Order>2</Order> <Label>System</Label> <PartitionID>2</PartitionID> <Format>FAT32</Format> </ModifyPartition> <ModifyPartition wcm:action="add"> <PartitionID>3</PartitionID> <Order>3</Order> </ModifyPartition> <ModifyPartition wcm:action="add"> <PartitionID>4</PartitionID> <Order>4</Order> <Letter>C</Letter> <Label>Windows</Label> <Format>NTFS</Format> </ModifyPartition> </ModifyPartitions> <WillWipeDisk>true</WillWipeDisk> <DiskID>0</DiskID> </Disk> <WillShowUI>Always</WillShowUI> </DiskConfiguration> <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/INDEX</Key> <Value>2</Value> </MetaData> </InstallFrom> <InstallTo> <DiskID>0</DiskID> <PartitionID>4</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> </component> </settings>