Jump to content

Recommended Posts

Posted

I like to put program files, documents & settings, windows, temp and swap on separate drives. I know how to accomplish this after an installation using the following for program files for example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

"ProgramFilesDir"="p:\\pgms"

"CommonFilesDir"="p:\\pgms\\Common Files"

However early-on in the installation, these logical drive letters have not yet been assigned. Would the syntax below work?

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

"ProgramFilesDir"="multi(0)disk(0)rdisk(0)partition(4)\\pgms"

"CommonFilesDir"="multi(0)disk(0)rdisk(0)partition(4)\\pgms\\Common Files"

If not, any ideas? :blink:


Posted

Look into this registry thread

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

After configuring the folders as you like, just export the thread, and then import it during the install. Certainly, the target drive should exist on the PC where you perform the installation.

Posted

Huh? :blink:

The linked page above has exactly that and more!

[GuiUnattended]
ProfilesDir="C:\Documents and Settings\"
You can change the default location of Documents and Settings using this entry.

Posted

Thanks for the correction, prathapml. I misunderstood the initial question. My answer relates to the User Shell Folders, and would be valid in a case when someone wants, say, to stick with the profile stored in C:\Documents and Settings\, but have My Documents folder with all precious and multi-GB data on another logical or physical drive.

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