Jump to content

Relocate Windows folders during installation


Recommended Posts

I am attempting to modify %ProgramFiles% and %ProgramFiles(x86)% definitions as well as a few minor directories during setup. What I am not sure of is where or when to apply this so windows copies the least amount of files to the default locations.

I plan on using registry entries like the following. If I have to, I will write a script that finds and replaces any registry entries already modified and use the results of the script to move those files to their new locations.

Any guidance is greatly appreciated! Comments also!!

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment]

"CSIDL_PROGRAM_FILES"="F:\\Program Files\\"

"CSIDL_PROGRAM_FILESX86"="F:\\Program Files (x86)\\"

"AllUsers"="F:\\Users"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]

"CSIDL_PROGRAM_FILES"="F:\\Program Files\\"

"CSIDL_PROGRAM_FILESX86"="F:\\Program Files (x86)\\"

"AllUsers"="F:\\Users"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

"CommonFilesDir"="F:\\Program Files\\Common Files"

"CommonFilesDir (x86)"="F:\\Program Files (x86)\\Common Files"

"CommonW6432Dir"="F:\\Program Files\\Common Files"

"ProgramFilesDir"="F:\\Program Files"

"ProgramFilesDir (x86)"="F:\\Program Files (x86)"

"ProgramW6432Dir"="F:\\Program Files"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]

"Common Desktop"="F:\\Users\\All Users\\Desktop"

"Common Start Menu"="F:\\Users\\All Users\\Start Menu"

"CommonVideo"="F:\\Users\\All Users\\Media"

"CommonPictures"="F:\\Users\\All Users\\Media"

"Common Programs"="F:\\Users\\All Users\\Start Menu\\Programs"

"CommonMusic"="F:\\Users\\All Users\\Media"

"Common Administrative Tools"="F:\\Users\\All Users\\Start Menu\\Programs\\Administrative Tools"

"Common Startup"="F:\\Users\\All Users\\Start Menu\\Programs\\Startup"

"Common Documents"="F:\\Users\\All Users\\Documents"

"OEM Links"="F:\\Users\\All Users\\Links"

"Common Templates"="F:\\Users\\All Users\\Templates"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

"CommonPictures"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,\

4d,00,65,00,64,00,69,00,61,00,00,00

"CommonMusic"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,4d,\

00,65,00,64,00,69,00,61,00,00,00

"CommonVideo"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,4d,\

00,65,00,64,00,69,00,61,00,00,00

"Common Start Menu"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,\

00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,00,00

"Common Programs"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,\

53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,72,\

00,6f,00,67,00,72,00,61,00,6d,00,73,00,00,00

"Common Startup"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,\

53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,72,\

00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,53,00,74,00,61,00,72,00,74,00,\

75,00,70,00,00,00

"Common Templates"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,\

00,54,00,65,00,6d,00,70,00,6c,00,61,00,74,00,65,00,73,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList]

"Public"=hex(2):25,00,55,00,73,00,65,00,72,00,73,00,25,00,5c,00,50,00,75,00,62,\

00,6c,00,69,00,63,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\ProfileList]

"Public"=hex(2):25,00,55,00,73,00,65,00,72,00,73,00,25,00,5c,00,50,00,75,00,62,\

00,6c,00,69,00,63,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion]

"CommonFilesDir"="F:\\Program Files (x86)\\Common Files"

"CommonFilesDir (x86)"="F:\\Program Files (x86)\\Common Files"

"CommonW6432Dir"="F:\\Program Files\\Common Files"

"ProgramFilesDir"="F:\\Program Files (x86)"

"ProgramFilesDir (x86)"="F:\\Program Files (x86)"

"ProgramW6432Dir"="F:\\Program Files"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\Shell Folders]

"Common Desktop"="F:\\Users\\All Users\\Desktop"

"Common Start Menu"="F:\\Users\\All Users\\Start Menu"

"CommonVideo"="F:\\Users\\All Users\\Media"

"CommonPictures"="F:\\Users\\All Users\\Media"

"Common Programs"="F:\\Users\\All Users\\Start Menu\\Programs"

"CommonMusic"="F:\\Users\\All Users\\Media"

"Common Administrative Tools"="F:\\Users\\All Users\\Start Menu\\Programs\\Administrative Tools"

"Common Startup"="F:\\Users\\All Users\\Start Menu\\Programs\\Startup"

"Common Documents"="F:\\Users\\All Users\\Documents"

"OEM Links"="F:\\Users\\All Users\\Links"

"Common Templates"="F:\\Users\\All Users\\Templates"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders]

"CommonPictures"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,\

4d,00,65,00,64,00,69,00,61,00,00,00

"CommonMusic"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,4d,\

00,65,00,64,00,69,00,61,00,00,00

"CommonVideo"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,4d,\

00,65,00,64,00,69,00,61,00,00,00

"Common Start Menu"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,\

00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,00,00

"Common Programs"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,\

53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,72,\

00,6f,00,67,00,72,00,61,00,6d,00,73,00,00,00

"Common Startup"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,00,\

53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,72,\

00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,53,00,74,00,61,00,72,00,74,00,\

75,00,70,00,00,00

"Common Templates"=hex(2):25,00,50,00,55,00,42,00,4c,00,49,00,43,00,25,00,5c,\

00,54,00,65,00,6d,00,70,00,6c,00,61,00,74,00,65,00,73,00,00,00

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