Jump to content

Will not Create Disk Partition


Recommended Posts

I Want to wipe all existing partitions, Create a single partition the size of the physical disk and then format and label it.

The xml below does not do it. I always get the screen sitting at "Where do you want to install windows" and it is waiting for ME to create and format the partition.

This is for Vista Busniess.

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-Setup" processorArchitecture="x86" 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 wcm:action="add">

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Type>Primary</Type>

<Extend>false</Extend>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>true</Extend>

<Format>NTFS</Format>

<Label>System</Label>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

</Disk>

</DiskConfiguration>

<UserData>

<ProductKey>

<Key>----</Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

<AcceptEula>true</AcceptEula>

<FullName></FullName>

<Organization></Organization>

</UserData>

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>0</DiskID>

</InstallTo>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

</component>

<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" 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>0409:00000409</InputLocale>

<SystemLocale>en-US</SystemLocale>

<UILanguage>en-US</UILanguage>

<UILanguageFallback>en-US</UILanguageFallback>

<UserLocale>en-US</UserLocale>

</component>

</settings>

<settings pass="oobeSystem">

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<OOBE>

<HideEULAPage>true</HideEULAPage>

<SkipMachineOOBE>true</SkipMachineOOBE>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

<AutoLogon>

<Password>

<Value>KABDADAAbQBwAHUAdABlAHIAKQBQAGEAcwBzAHcAbwByAGQA</Value>

<PlainText>false</PlainText>

</Password>

<Enabled>true</Enabled>

<LogonCount>5</LogonCount>

<Username>Administrator</Username>

</AutoLogon>

</component>

</settings>

<cpi:offlineImage cpi:source="wim:d:/vista%20builds/install.wim#Windows Vista BUSINESS" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

Link to comment
Share on other sites


  • 1 year later...
Sorted..

Hi everyone i am a complete beginner at these Forums so please forgive me for any errors or

admissions on my behalf.I am trying to create a Autounatend.xml file which will delete all existing

Partitions and create and Format One Partition the size of the drive.Every thing Else in the

Autounattend.xml File is working OK with the exception of the Partition.

During the installation I am prompted where to install Vista in this case VISTA Home Premium.

Here is my Autounattend.xml File

<?xml version="1.0" encoding="utf-8" ?>

- <unattend xmlns="urn:schemas-microsoft-com:unattend">

- <settings pass="windowsPE">

- <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" 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>0452:00000452</InputLocale>

<UserLocale>en-GB</UserLocale>

<UILanguage>en-US</UILanguage>

<SystemLocale>en-GB</SystemLocale>

</component>

- <component name="Microsoft-Windows-Setup" processorArchitecture="x86" 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>*****-*****-*****-*****-*****</Key>

<WillShowUI>OnError</WillShowUI>

- </ProductKey>

<Organization>Waterside</Organization>

<FullName>Chris</FullName>

<AcceptEula>true</AcceptEula>

</UserData>

================================================================

-<DiskConfiguration>

<WillShowUI>OnError</WillShowUI>

<Disk wcm:action="add">

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Type>Primary</Type>

<Extend>false</Extend>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add"> ==== THIS IS MY DISK CONFIGURATION====

<Active>true</Active>

<Extend>true</Extend>

<Format>NTFS</Format>

<Label>System</Label>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

</Disk>

</DiskConfiguration>

================================================================

<ImageInstall> ==== I SUSPECT MY ERRORS ARE IN THIS AREA ====

<OSImage>

<InstallFrom>

<MetaData wcm:action="add">

<Key>/IMAGE/NAME</Key>

<Value>Windows Vista HOMEPREMIUM</Value> without this line I it asks for which version of Vista <MetaData>

</InstallFrom>

<InstallToAvailablePartition>false</InstallToAvailablePartition>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

=================================================================

</component>

</settings>

- <settings pass="oobeSystem">

- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

- <OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Home</NetworkLocation>

<ProtectYourPC>2</ProtectYourPC>

<SkipMachineOOBE>true</SkipMachineOOBE>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

<TimeZone>GMT Standard Time</TimeZone>

- <UserAccounts>

- <AdministratorPassword>

<Value />

<PlainText>true</PlainText>

</AdministratorPassword>

- <LocalAccounts>

- <LocalAccount wcm:action="add">

- <Password>

<Value />

<PlainText>true</PlainText>

</Password>

<Description>Waterside</Description>

<DisplayName>Chris</DisplayName>

<Group>Administrators</Group>

<Name>Chris</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

</component>

- <component name="Microsoft-Windows-Sidebar" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SidebarOnByDefault>true</SidebarOnByDefault>

<SidebarVisible>true</SidebarVisible>

</component>

- <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<InputLocale>0409:00000409</InputLocale>

<UserLocale>en-US</UserLocale>

<UILanguage>en-US</UILanguage>

<SystemLocale>en-US</SystemLocale>

</component>

</settings>

- <settings pass="specialize">

- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<ComputerName>Home-PC</ComputerName>

<RegisteredOrganization>Waterside</RegisteredOrganization>

<RegisteredOwner>Chris</RegisteredOwner>

- <Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1024</HorizontalResolution>

<RefreshRate>60</RefreshRate>

<VerticalResolution>768</VerticalResolution>

</Display>

</component>

- <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<DisableSR>0</DisableSR>

</component>

- <component name="Security-Malware-Windows-Defender" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<DisableAntiSpyware>true</DisableAntiSpyware>

</component>

</settings>

<cpi:offlineImage cpi:source="wim:C:/Vista Home Premium/sources/install.wim#Windows Vista HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

If anyone could help me on this issue I would be most greatfull

Chris UK

Link to comment
Share on other sites

This will work

<DiskConfiguration>

<Disk wcm:action="add">

<CreatePartitions>

<CreatePartition wcm:action="add">

<Extend>true</Extend>

<Order>1</Order>

<Type>Primary</Type>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Format>NTFS</Format>

<Label>Vista</Label>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

<UserData>

<ProductKey>

<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

<AcceptEula>true</AcceptEula>

</UserData>

<UseConfigurationSet>true</UseConfigurationSet>

</component>

</settings>

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...