Задача: полностью удалить все разделы и создать один активный раздел под систему и один логический. По приведенному ниже листингу не получается.
Код:
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<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>
ru-RU
</UILanguage>
</SetupUILanguage>
<SystemLocale>
ru-RU
</SystemLocale>
<UILanguage>
ru-RU
</UILanguage>
<UILanguageFallback>
ru-RU
</UILanguageFallback>
<UserLocale>
ru-RU
</UserLocale>
<InputLocale>
0409:00000409;0419:00000419
</InputLocale>
</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">
<DiskConfiguration>
<WillShowUI>
OnError
</WillShowUI>
<Disk>
<DiskID>
0
</DiskID>
<WillWipeDisk>
true
</WillWipeDisk>
<CreatePartitions>
<CreatePartition>
<Order>
1
</Order>
<Extend>
false
</Extend>
<Type>
Primary
</Type>
<Size>
100000
</Size>
</CreatePartition>
<CreatePartition>
<Extend>
true
</Extend>
<Order>
2
</Order>
<Type>
Logical
</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>
true
</Active>
<Extend>
false
</Extend>
<Format>
NTFS
</Format>
<Label>
W7
</Label>
<Letter>
C
</Letter>
<Order>
1
</Order>
<PartitionID>
1
</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Active>
false
</Active>
<Extend>
false
</Extend>
<Format>
NTFS
</Format>
<Label>
DATA
</Label>
<Letter>
D
</Letter>
<Order>
2
</Order>
<PartitionID>
2
</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>
/image/index
</Key>
<Value>
1
</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>
0
</DiskID>
<PartitionID>
1
</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>
true
</AcceptEula>
</UserData>
</component>
</settings>
<cpi:offlineImage cpi:source="wim://r418/reminst/images/client/1obraz.wim#образ" xmlns:cpi="urn:schemas-microsoft-com:cpi"/>
</unattend>