Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Relocate Windows folders during installation


  • Please log in to reply
No replies to this topic

#1
thedexmonster

thedexmonster

    Newbie

  • Member
  • 19 posts
  • Joined 19-September 07
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


How to remove advertisement from MSFN



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users