Jump to content

Unattended Vista with Multiple Partitions


Recommended Posts

Ok, thanks. So I should just make a ton of dummy partitions to force the ones I want to be f and p?

nope, you can specify the letters you want. just change D, E or F to anything you want, like:

<ModifyPartition wcm:action="add">

<Active>false</Active>

<Label>Programs</Label>

<Letter>P</Letter>

<Order>2</Order>

<PartitionID>2</PartitionID>

<Format>NTFS</Format>

<Extend>false</Extend>

</ModifyPartition>

careful using the format option, it will erase the selected partition.

if you don't know your partitionID, just take a look at your disk's partitions in computer management.

my program files registry edition works. feel free to try it.

footswitch

Ok thanks!

Link to comment
Share on other sites


hey friends plz tell me where to paste the unattended.xml to my windows setup so that i can customise the installation process :)

hi there,

you have 3 options that i know of:

a ) place the file in the root of a USB pen drive and insert it BEFORE booting with the WinVista DVD;

b ) do the same thing but with a diskette;

c ) place the file in the root of your boot DVD.

good luck :)

Edited by footswitch
Link to comment
Share on other sites

Ok, I tried this:

It installed, and now I have my two drives, BUT they just have folders in them (no files)

Also, on the partition where I installed vista, there is a users folder and a program files folder (filled)

any ideas?

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

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

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

<FolderLocations>

<ProfilesDirectory>f:\</ProfilesDirectory>

<ProgramData>p:\</ProgramData>

</FolderLocations>

</component>

</settings>

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

<DiskConfiguration>

<Disk wcm:action="add">

<ModifyPartitions>

<ModifyPartition wcm:action="modify">

<Active>false</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>vista F drive</Label>

<Letter>F</Letter>

<Order>1</Order>

<PartitionID>2</PartitionID>

</ModifyPartition>

<ModifyPartition wcm:action="modify">

<Order>2</Order>

<Active>false</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>vista P drive</Label>

<Letter>P</Letter>

<PartitionID>3</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>false</WillWipeDisk>

</Disk>

<WillShowUI>Always</WillShowUI>

</DiskConfiguration>

</component>

</settings>

<cpi:offlineImage cpi:source="wim:p:/vista/vista_x64/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

Edited by wng_z3r0
Link to comment
Share on other sites

wng_z3r0: Strange... wonder if the xml file must have the exact installation order... (you could try putting oobesystem AFTER windowspe)

I took a look at your file and mine is similar to it, and it worked.

bah forget it.

I just installed the regular way and then used symbolic links.

Works now :)

Are you sure of that? I mean, that doesn't change at all where your files are located. Best case changes where files WILL be located from now on, right?

Anyways, I never used symlinks... but can you tell me what's your point on that method?

Thanks ;)

Link to comment
Share on other sites

footswitch,

Why did you cross out "you can delete the old Program Files folder!" in

5. After rebooting successfully, you can delete the old Program Files folder! you're ready to go!

afterwards?

--> The old post is now re-edited.

Well with RTM I found out that AT LEAST Win Internet Explorer and Win Media Player are installed with absolute paths, that is, when you click their links, you're trying to reach "%SystemDrive%\Program Files" and not %ProgramFiles% itself. I suppose that other Windows pre-installed products will have the same behaviour, and I preferred to leave those ~500MB there rather than deleting them, to avoid future issues.

BUT anyways one has to copy at least the "Common Files" folder to the new location, but I copied the whole Program Files folder for the same reason. This is all due to lack of knowledge about what exactly it needs in one side and in the other.

Edited by footswitch
Link to comment
Share on other sites

Hi there,

What Im trying to do is do an unattended install with D:\Users. Problem is that after the first install it will not point to the old folders if I reinstall, it only appends the computer name to user folder. Example:

first install:

D:\Users\Daedlus

Second install, it takes my computer name and appends it to my user name, if the first installs user files have not moved:

D:\Users\Daedlus.mshome

What I want it to do is point to D:\Users\Daedlus after every install. Anybody have any ideas. I have tryed coping the files to a temp dir and deleting the D:\Daedlus, but I cant get it to work. Any help is appreciated.

Edited by Daedlus
Link to comment
Share on other sites

Hi there,

What Im trying to do is do an unattended install with D:\Users. Problem is that after the first install it will not point to the old folders if I reinstall, it only appends the computer name to user folder. Example:

first install:

D:\Users\Daedlus

Second install, it takes my computer name and appends it to my user name, if the first installs user files have not moved:

D:\Users\Daedlus.mshome

What I want it to do is point to D:\Users\Daedlus after every install. Anybody have any ideas. I have tryed coping the files to a temp dir and deleting the D:\Daedlus, but I cant get it to work. Any help is appreciated.

Hi there,

AFAIK, you should respect this behaviour because each user has a sort of unique I.D. within its O.S., so many of the settings contained in the first folder wouldn't be compatible with the new installation. To avoid that problem, I suggest the following solutions:

a ) boot into some Live O.S. or a different O.S. that you have installed in your system;

b ) plug your hard disk as secundary in another system

After doing ( a ) or ( b ), rename the old folders (users and programdata).

Then:

Reinstall windows

Move the old documents, downloads, pictures, etc. to the new location

Remove the rest...

Edited by footswitch
Link to comment
Share on other sites

This is what I did:

1. I installed vista.

2. On the desktop, right click and make a shortcut

3. In the path type in CMD

4. Hit next until the shortcut is made

5. Right click and hit run as admin

6. type in cd..

7. keep doing that until you are at c:\

8. type in

mklink /d /j "Program Files1" "D:\This is the new location for my program files"

Repeat for the other directories you want to move.

ex:

mklink /d /j "Users" "F:\coolest people ever"

Then boot into another operating system. I used Bart PE.

Move the c:\program files folder to D:\This is the new location for my program files"

Then rename ProgramFiles1 to ProgramFiles

Boot into Vista :)

If you want, you can now make symbolic links to your files instead of junctions.

Since c:\program files is actually a junction, you can delete it without trouble.

the code for a symbolic link is the same thing without the /j switch:

mklink /d "Program Files" "D:\This is the new location for my program files"

Now you can change these registry settings if you want:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion

and

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\shell folders

wng

Edited by wng_z3r0
Link to comment
Share on other sites

wng_z3r0,

that's nice... really :)

but you can do that same symlink right into another Windows NT O.S., in order to do all the steps without restarting, right?

Well if it works with absolutely no flaws, then it's a great workaround to those who don't want to care about XML autoconfig files!

Anyways it's a good parallel solution to the one I provided for changing %programfiles%. The difference is this changes it without changing it :D

Nice idea, I had never thought of it!

Link to comment
Share on other sites

No, other NT operating systems only understand hard links and junctions (not true symlinks)

And hard links don't let you jump across drive letters, thus I had to use junctions. (trust me I tried everything to make it work ;) )

and other OS's don't have the tools to make junctions by default. They are in the SDK, and I didn't feel like downloading anything. Since I already had Vista installed.... I just used it.

Edited by wng_z3r0
Link to comment
Share on other sites

Hi all,

I'm probably not adding any new knowledge to this post, but I've been tracking this discussion as I too am very eager to install Vista on my new laptop (coming soon) with Program Files and User Profiles on separate partitions.

After reading all your responses, I *think* this might be the closest I could get to have ProgramFiles, ProgramData and Users on their own separate partitions. Let me stress that I haven't tested this yet so I wouldn't recommend anyone try this until someone's confirmed it works.

1. Use WSIM to create an answer file to install ProgramData and ProgramFiles on their own partitions.

2. Install Vista.

3. Boot into Vista and XCOPY C:\Program Files to another partition. XCOPY has options to preserve permissions and file ownerships which I'm not 100% a copy in Windows Explorer does.

4. Change the keys in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\* to point to the new locations (including Common Files.

5. At this point it's probably worth a reboot to see if the programs are working properly.

6. As someone mentioned before, some default Windows programs are installed with a reference to "%systemdrive%\Program Files" so I'll probably have to manually change some links. On a fresh install of Vista, there shouldn't be too many. Also this step is optional because of step 10 (see later).

7. Again, reboot and try some default apps like WMP.

8. Boot into a BartPE CD and *rename* "C:\Program Files" to something else (I wouldn't delete it yet). This step is probably necessary because if you are in Vista, some files will be in use and you will not be able to touch the folder.

9. Boot back into Vista and make sure some programs work. It's probably not possible to test every single program in Windows so I recommend step 10.

10. Create a symbollic link on C: to your new Program Files, Program Data and Users folders on other partitions. The reasoning for this is, if I missed anything in step 6, at least C:\Program Files exists and links to a location that contains the actual files. Also, you never know what naughty developers might hardcode paths in their setup files.

11. Use Vista for a few weeks and when I'm happy with the system, delete the renamed Program Files folder on C:.

If I've missed anything, please do let me know. After I've tried this on my laptop, I'll let everyone know my results.

Link to comment
Share on other sites

Yep, that's pretty much it.

some files will be in use and you will not be able to touch the folder.

No, the reason is because Vista will NOT give you the necessary permissions, regardless whether the folder is in use. Only 'trusted installers' have access to the folder, and I don't know if those trustee rights are enough. It's vista DRM at it's finest :) Same reason why you can't replace c:\windows\system32\notepad.exe

Also change these keys:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\shell folders

The names are self explanatory.

One last comment. If you are using vista x64, you have to edit the WoW6432Node registry mirrors too.

wng

Edited by wng_z3r0
Link to comment
Share on other sites

-- WARNING -- Currently unsolved issue

Alright, I got a good one :no:

If we follow these steps (changing the Autounattend.xml to place documents and settings in another partition), the "preinstalled" symlinks will be ruined.

Try to open your Documents folder and then, inside it, open My Pictures, My Music or My Videos. These links are actually (or were supposed to be) symbolic links.

My Pictures should link to ../Pictures

My Music should link to ../Music

... and so on.

The system will display an error dialog like "access denied bla bla bla", but the fact is that the symbolic link isn't working properly. Just right-click the link and choose properties. The properties window should provide the absolute path, but it does not.

Try to create a simple symbolic link in vista, and see the difference in the properties window of your symlink.

UPDATE: Open "cmd" and "cd" into your documents folder. "dir /AL" its contents.

my pictures, my music and my video are listed as <JUNCTION>, but they don't act likewise.

Also, when you access "This User\My Documents", you should be redirected to "This User\Documents", and so on.

There's a LOT of symlinks going inside the Users folder.

E:\VistaUsers\footswitch>cd documents

E:\VistaUsers\footswitch\Documents>dir /al

Volume in drive E is DATA

Volume Serial Number is 4444-CDF0

Directory of E:\VistaUsers\footswitch\Documents

15-11-2006 16:50 <JUNCTION> My Music [E:\VistaUsers\footswitch\Music]

15-11-2006 16:50 <JUNCTION> My Pictures [E:\VistaUsers\footswitch\Pictur

es]

15-11-2006 16:50 <JUNCTION> My Videos [E:\VistaUsers\footswitch\Videos]

0 File(s) 0 bytes

3 Dir(s) 1.086.521.344 bytes free

E:\VistaUsers\footswitch\Documents>cd my music

E:\VistaUsers\footswitch\Documents\My Music>dir

Volume in drive E is DATA

Volume Serial Number is 4444-CDF0

Directory of E:\VistaUsers\footswitch\Documents\My Music

File Not Found

E:\VistaUsers\footswitch\Documents\My Music>cd..\..

E:\VistaUsers\footswitch>cd my documents

E:\VistaUsers\footswitch\My Documents>dir

Volume in drive E is DATA

Volume Serial Number is 4444-CDF0

Directory of E:\VistaUsers\footswitch\My Documents

File Not Found

E:\VistaUsers\footswitch\My Documents>exit

Any ideas to overcome the issue? I have none. This could be a bug in Vista Unattended Install.

EDIT: typos and incoherent info

Edited by footswitch
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...