MSFN Forum: Unattended Vista with Multiple Partitions - MSFN Forum

Jump to content



  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Vista with Multiple Partitions Rate Topic: -----

#1 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 02 September 2006 - 08:10 PM

Intro:

Extending Autounattend.xml using the knowledge gather from http://www.msfn.org/...showtopic=52530

Goal:

Have ProfilesDirectory, ProgramFiles in two seperate partitions other than the partition Windows is installed to.
For example:

C:\Windows
D:\Users
E:\Program Files\

This is one of my main need for an unattended installation.

Testing:

I have attached my current Autounattend.xml.txt

To my disappointment, my last test with VMware didn't quite make use of

<FolderLocations>
	<ProfilesDirectory>D:\Users</ProfilesDirectory>
		<ProgramData>E:\ProgramData</ProgramData>
		<ProgramFiles>E:\Applications</ProgramFiles>
	  </FolderLocations>


in the XML file.

I am continuing to test this out to get it working.

For those who are new and interested in Customizing System Folders, there is a Wiki setup for Windows XP/Server 2003.

http://wmwiki.com/wi...=Unattended_MCE

Bye for now,
McoreD

Attached File(s)




#2 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 02 September 2006 - 09:02 PM

Test 0: (above) VMware with the Autounattend.xml. Couldn't make any judgement because of blank screen.

Test 1: Virtual PC with the above Autounattend.xml

Posted Image

There is something wrong in the section
<settings pass="oobeSystem">


Wonder what it could be. :(

#3 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 03 September 2006 - 06:18 PM

Test 2: Virtual PC with the attached Autounattend.xml in this post.

Posted Image

How weirder can this get? :)

Attached File(s)



#4 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 04 September 2006 - 01:34 AM

Hi All,

Test 3:

This is done in a real PC! Burnt Vista ISO in a DVD with the following Autounattend.xml

<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>
			</DiskConfiguration>
			<Display>
				<ColorDepth>32</ColorDepth>
				<HorizontalResolution>1024</HorizontalResolution>
				<RefreshRate>60</RefreshRate>
				<VerticalResolution>768</VerticalResolution>
			</Display>
			<DynamicUpdate>
				<Enable>true</Enable>
			</DynamicUpdate>
			<ImageInstall>
				<OSImage>					
					<InstallFrom>
						<Path>x:\sources\install.wim</Path>
					</InstallFrom>
			<InstallTo>
					</InstallTo>
				</OSImage>
			</ImageInstall>
			<UserData>
				<ProductKey>
					<Key>XXXXX-VHWRJ-XXXXX-VQ942-XXXXX</Key>
					<WillShowUI>OnError</WillShowUI>
				</ProductKey>
				<AcceptEula>true</AcceptEula>
				<FullName>McoreD</FullName>
				<Organization>BetaONE</Organization>
			</UserData>
		</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>en-US</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UILanguageFallback>en-US</UILanguageFallback>
			<UserLocale>en-US</UserLocale>
		</component>
	</settings>
	
	
	<settings pass="specialize">
	
		<component name="Microsoft-Windows-UnattendedJoin" 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">
			<Identification>
				<JoinWorkgroup>BetaONE</JoinWorkgroup>
			</Identification>
		</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>en-US</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" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">

	  <FolderLocations>
		<ProfilesDirectory>G:\VistaUsers</ProfilesDirectory>
		<ProgramData>G:\VistaProgramData</ProgramData>
		<ProgramFiles>G:\VistaApplications</ProgramFiles>
	  </FolderLocations>

	</component>
  </settings>
	
	
</unattend>


The result was (unfortunately) identical to what I got in VMware and Virtual PC.

Posted Image

The HDDs in the real PCs are undoubtedly NTFS and working well under XP/Server 2003.

Seriouly guys, I am out of ideas now. If it is not working in real PCs, then I am not sure what to do next.

Do we REALLY need this:

<InstallTo>
						<DiskID>0</DiskID>
						<PartitionID>1</PartitionID>
					</InstallTo>


Guess my next and last test is to check with InstallTo, just to see if X:\ is working properly.

Cheers,
McoreD

This post has been edited by McoreD: 04 September 2006 - 02:02 AM


#5 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 07 September 2006 - 04:54 AM

Test 4:

First (90%) successful unattended installation. Oh my god. :)

<?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>
			</DiskConfiguration>
			<Display>
				<ColorDepth>32</ColorDepth>
				<HorizontalResolution>1024</HorizontalResolution>
				<RefreshRate>60</RefreshRate>
				<VerticalResolution>768</VerticalResolution>
			</Display>
			<DynamicUpdate>
				<Enable>true</Enable>
			</DynamicUpdate>
			<ImageInstall>
				<OSImage>
					<InstallFrom>
						<Path>G:\Workshop\vistarc1\SOURCES\install.wim</Path>
					</InstallFrom>
				</OSImage>
			</ImageInstall>
			<UserData>
				<ProductKey>
					<Key>XXXXX-VHWRJ-XXXXXX-VQ942-XXXXX</Key>
					<WillShowUI>OnError</WillShowUI>
				</ProductKey>
				<AcceptEula>true</AcceptEula>
				<FullName>McoreD</FullName>
				<Organization>BetaONE</Organization>
			</UserData>
		</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>en-US</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UILanguageFallback>en-US</UILanguageFallback>
			<UserLocale>en-US</UserLocale>
		</component>
	</settings>
	<settings pass="specialize">
		<component name="Microsoft-Windows-UnattendedJoin" 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">
			<Identification>
				<JoinWorkgroup>BetaONE</JoinWorkgroup>
			</Identification>
		</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>en-US</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" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
			<FolderLocations>
				<ProfilesDirectory>G:\VistaUsers</ProfilesDirectory>
				<ProgramData>G:\VistaProgramData</ProgramData>
			</FolderLocations>
		</component>
	</settings>
	<cpi:offlineImage cpi:source="wim:g:/workshop/vistarc1/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Changes from previous Autounattend.xml are:

1. Install.wim location was set to a path in another HDD partition
2. Removed ProgramFiles from FolderLocations because RC1 version of WSIM said there is no such child in FolderLocations. It is weird because the Microsoft sample XML in Beta 1 had it!

Anyways, next test is with

<FolderLocations>
				<ProfilesDirectory>G:\VistaUsers</ProfilesDirectory>
				<ProgramData>G:\VistaProgramData</ProgramData>
	<ProgramFiles>G:\VistaApplications</ProgramFiles>
</FolderLocations>


Bye for now.

This post has been edited by McoreD: 07 September 2006 - 05:27 AM


#6 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

  Posted 07 September 2006 - 05:25 AM

Okay when you add the
<ProgramFiles>G:\VistaApplications</ProgramFiles>

you get the error:
http://img126.imageshack.us/img126/2184/vp...obeerrorvi6.jpg

So basically, you cannot change the ProgramFiles folder location using Autounattended because it is no longer supported since RC1. Please prove me wrong because I really need to change it like in winnt.sif.

At least the Users folder location is modifiable. :)

#7 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,897
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 September 2006 - 08:32 AM

it is probably still modifiable, but there is possibly a new XML tag for it. :) good work on the unattend, hopefully a new version of the WSIM will be out soon for RC1 and i will update the Unattend i did before.

#8 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 07 September 2006 - 06:12 PM

Hi fizban2, Test 4 was done with WSIM for RC1 of Vista (5600.16384.060829-2230-LR1WAIK_EN). :)

Posted Image

Hopefully in a future build in RC1, ProgramFiles location is customizable.

#9 User is offline   Tyrnt 

  • Group: Members
  • Posts: 2
  • Joined: 18-September 06

Posted 18 September 2006 - 12:49 PM

can the modifications to the directors of the programs and user profiles be done AFTER installation? I already have vista installed and already installed a bunch of programs i dont want to have to do over but i want to change the default path to all my programs to another partition and my docs to another partition.

Thanks

Tyrnt

#10 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 21 September 2006 - 03:21 AM

It's possible ( http://support.micro...b/236621/EN-US/ works for Vista too I heard ) but not 100% guarenteed to work like autounattend.xml.

Cheers,
Mcore

#11 User is offline   Lemon Lime 

  • Group: Members
  • Posts: 7
  • Joined: 11-September 06

Posted 26 September 2006 - 09:19 AM

I am trying to create a Unattended Vista install with multiple partitions as well. The method I am using is to create the unattend.xml answer file using Image Manager and then apply that xml file (located on a removeable USB drive) during the Windows DVD install. After the install is complete, run sysprep /oobe /generalize, restart the computer into Windows PE and capture image using Image X.

I am configuring the partitions in the autounattend.xml file using the Create and Modify Partitons components to create a Vista_Install(C:) and My All Data(D): partitions. When I apply the unattend.xml file during the DVD install, it creates the partitions correctly. However, when I run sysprep and boot into Win PE, the partitions get reversed. The C partition (where the OS should reside) becomes the D partition and vice versa. So now according to Win PE the OS is on the D partition. I tried capturing the D drive, but after deploying the image, Windows would not even start. Here is the disk configuration of my unattend.xml file. Anyone have any suggestions of what I maybe doing wrong? Going to give it another try.

- <DiskConfiguration>
- <Disk wcm:action="add">
- <CreatePartitions>
- <CreatePartition wcm:action="add">
  <Order>1</Order> 
  <Size>20000</Size> 
  <Type>Primary</Type> 
  </CreatePartition>
- <CreatePartition wcm:action="add">
  <Order>2</Order> 
  <Size>25000</Size> 
  <Type>Primary</Type> 
  </CreatePartition>
  </CreatePartitions>
- <ModifyPartitions>
- <ModifyPartition wcm:action="add">
  <Active>true</Active> 
  <Extend>false</Extend> 
  <Format>NTFS</Format> 
  <Label>Vista_Install</Label> 
  <Letter>C</Letter> 
  <Order>1</Order> 
  <PartitionID>1</PartitionID> 
  </ModifyPartition>
- <ModifyPartition wcm:action="add">
  <Active>true</Active> 
  <Extend>false</Extend> 
  <Format>NTFS</Format> 
  <Label>My All Data</Label> 
  <Letter>D</Letter> 
  <Order>2</Order> 
  <PartitionID>2</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>


#12 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 02 October 2006 - 01:20 PM

@ Lemon Lime:

You are creating two primary partitions. Primary partitions are used for OS only usaly. Your data partition should be an extended one.

And you're setting both partitions to active. But you can just have one active partition on one drive at the same time. I guess that the partition ids are switched as soon as your My All Data partition is set to active. As result the Vista will installed on My All Data partition.

Martin

This post has been edited by FireGeier: 02 October 2006 - 01:20 PM


#13 User is offline   fizban2 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,897
  • Joined: 14-April 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 October 2006 - 01:41 PM

Martin is right,

if you want to make both partitions primary you cannot set the second one to active, it will be available but windows will not see it as a place to install too.

#14 User is offline   Lemon Lime 

  • Group: Members
  • Posts: 7
  • Joined: 11-September 06

Posted 03 October 2006 - 09:58 AM

Thanks Martin and Fizban for the help!

#15 User is offline   prognostic 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 11-July 05

Posted 05 October 2006 - 06:11 PM

Wait...so has anyone successfully moved the location of Program Files?
I don't see the option in this version of WSIM? Has the XML parameter changed?

#16 User is offline   Saks 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 14-August 05

Posted 06 October 2006 - 08:33 AM

I don't know guys if it is appropriate to ask here :( , what is the equivalent of wpa.dbl in vista RC1?. I have installed vista and activated through internet. However, I have searched through the win32 dir in vista, there's no wpa.dbl :huh: . Also, if an equivalent exists, where does it go in the DVD for unattended install and auto-activation on the same machine and on the same partition? :unsure:

"Okay when you add the
CODE<ProgramFiles>G:\VistaApplications</ProgramFiles>
you get the error:
http://img126.images...obeerrorvi6.jpg"

Should it not be <ProgramData> instead of <ProgramFiles>?

This post has been edited by Saks: 06 October 2006 - 09:53 AM


#17 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 07 October 2006 - 10:04 AM

View PostSaks, on Oct 6 2006, 10:33 PM, said:

Should it not be <ProgramData> instead of <ProgramFiles>?


Changing ProgramData location is already possible. It's the ProgramFiles that is not possible. :)

#18 User is offline   McoreD 

  • Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 03-September 04

Posted 08 October 2006 - 10:30 PM

This is from the latest RC2 WAIK:

still only these two Child Elements for Folder Locations that can customize

ProfilesDirectory
Specifies the path to the user profile folder.

ProgramData
Specifies the path to the program data folder.

no ProgramFiles yet. This turns out to be pretty bad. Doesn't look like Microsoft letting us change the ProgramFiles folder path. :(

#19 User is offline   prognostic 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 11-July 05

Posted 09 October 2006 - 12:54 PM

Thanks for the update Mcore.

I agree this is in no way a good thing. Of all the things I found most beneficial when I started getting into unattended installs was moving the *PROGRAM FILES* directory.

It is just a matter of fact that it makes sense to seperate all of your program files/data and user data from the operating system files.

I haven't done an analysis of standard file sizes for Vista OS files yet but I did so in XP and that factored in to the cluster sizes I used on my NTFS partitions.

For instance:
C:\ 16kb clusters
D:\ 8kb clusters
E: default (4kb)

Not only does this measure prevent against fragmentation, it also speeds up performance and you never get your OS partition messy. I sure hope we can get something done about this because it is truely a crucial part of the image.

#20 User is offline   prognostic 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 11-July 05

Posted 10 October 2006 - 02:14 PM

Has anyone looked into alternative methods than using WAIK? I know there was some fairly simple procedure to do this for XP...but I always just used nlite.

I'll bet if we looked around we could find a way to modify the image itself and repackage it or something.

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy