Jump to content

Win 7 RTM - Can't format or partition | Used System Image Manager


Recommended Posts

Hi,

I just downloaded Win 7 RTM from Technet.

I also downloaded Windows AIK for Windows 7 as well.

I have spent hours trying figure out how to use the AIK, and finally after much reading I thought I had got the autounattend.xml right.

The problem I'm facing is that the my unattended installation isn't formatting or partitioning my hard drive according to the settings within Autounattend.xml file.

Which means every time I have tried running my unattended install, the old files from my previous Vista/7 OS Windows and Program files, are moved into Windows.old folders.

Notes:

  • The setup and unattended installation is working, as I haven't had to touch or type anything after I've run setup.exe from the Win7 DVD. The account, computer name are all being set.
  • I haven't encountered any errors during the installation process.

My Autounattend.xml file has been included below.

Any help would be greatly appreciated!

Cheers :thumbup

Autounattend.xml file:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<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>
<AcceptEula>true</AcceptEula>
</UserData>
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Type>Primary</Type>
<Order>1</Order>
<Extend>true</Extend>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>Logical</Type>
<Extend>true</Extend>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>false</Extend>
<Type>Extended</Type>
<Order>2</Order>
<Size>15000</Size>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<PartitionID>1</PartitionID>
<Active>true</Active>
<Format>NTFS</Format>
<Order>1</Order>
<Letter>C</Letter>
<Label>OS Disk</Label>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>2</Order>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Letter>D</Letter>
<Label>Swap File</Label>
<Order>3</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<PartitionID>1</PartitionID>
<DiskID>0</DiskID>
</InstallTo>
</OSImage>
</ImageInstall>
</component>
<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-au</UILanguage>
</SetupUILanguage>
<InputLocale>en-us</InputLocale>
<UserLocale>en-au</UserLocale>
<UILanguage>en-au</UILanguage>
<UILanguageFallback>en-au</UILanguageFallback>
<SystemLocale>en-au</SystemLocale>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-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">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Group>Administrators</Group>
<Name>B</Name>
<DisplayName>B</DisplayName>
<Description></Description>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
</OOBE>
<TimeZone>Cen. Australia Standard Time</TimeZone>
<RegisteredOwner>B</RegisteredOwner>
<RegisteredOrganization>B</RegisteredOrganization>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-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">
<OEMInformation>
<Manufacturer>B</Manufacturer>
<Model>PC</Model>
</OEMInformation>
<ComputerName>o</ComputerName>
<RegisteredOrganization>B</RegisteredOrganization>
<RegisteredOwner>B</RegisteredOwner>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/downloads/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by ot30
Link to comment
Share on other sites


I'm having exactly the same issue...

The relavent part of my autounattend.xml is

 
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>100</Size>
<Extend>false</Extend>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>2</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<PartitionID>2</PartitionID>
<TypeID></TypeID>
<Order>2</Order>
<Letter>C</Letter>
<Label>Primary</Label>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>

Install process is automated up untill the Partition selection screen, where it halts. If I simply select "Next" the installation proceeds in a fully automated manner

Link to comment
Share on other sites

Operating on the sometimes less is more principal, I cut the XML down to

			<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>1</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>

No Joy

Added the bold bit below

			<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>1</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>true</Extend>
<Format>NTFS</Format>
<Label>WIN</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
[b] </InstallTo>
<InstallToAvailablePartition>true</InstallToAvailablePartition>[/b]
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>

No Joy

I'm confused, this should work but isnt...

Link to comment
Share on other sites

This is the one I've been using (we recently decided in our department to do away with partitions, so makes my job easier)

<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>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>Windows7</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>

Took me a few reboots to get the correct parameters, the disk configuration portion is definitely a finicky one. From looking at your code, the first example creates a partition, but doesn't have the portion to modify it (with the file system type, label & active) and it definitely needs that. The second example has one of headaches I had as well in figuring it out a while ago; double "extend" parameter; if you already have it in the createpartition portion, you can't have it again in the modifypartition or it craps out.

Edited by Dechy
Link to comment
Share on other sites

Just out of interest, do you also have the following section?

<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>

I've removed the double extend and tried both with and without the above to no avail.

Just in case there is somethign I'm missing, I've attached the full answer file (with sensitive data removed) In my case, I am intentionally not adding a product code as this will be dealt with later.

tmpautounattend.xml

Link to comment
Share on other sites

I've tried replacing my method of installto/installfrom with yours and mine craps out as well. Mine doesn't specify an "install to" parameter (as in which disk/partition) but it does contain an install from, without it install gives me an error.

            <ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>

I'm guessing with the installtoavailablepartition set to true, one doesn't need to specify disk ID & partition, if you had it set to false, then you would need those.

I remember when I was trying hard to get the HD configuration working, I had to use a different XML file with JUST the HD parameters until I got it right, just to make sure nothing else was getting in the way.

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