• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2302
  • Last Modified:

How to Redirect "Program Files"

I am wanting to redirect any installs to automatically point to "D:\Program Files" instead of "C:\Program Files".  I recall a system variable or registry setting exists for this but cannot remember where.  The reason for wanting to do this is so that the "Common Files" directory can be on drive D: instead of drive C:

Thanks!
0
VoodooFrog
Asked:
VoodooFrog
1 Solution
 
duffman76Commented:
1. Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
2. Find ProgramFilesDir whose default should be C:\Program Files
3. Change this to whatever directory you wish. I changed it to D:\Program Files

You have to reboot for your changes to take effect.
0
 
Phadke_hemantCommented:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Set up
is this a key rpobebly?
0
 
VoodooFrogAuthor Commented:
In addition to the one you listed there is also a CommonFilesDir  key.

Thanks!
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
monkies911Commented:
0
 
QuitchCommented:
What impact does this have on pre-installed Program Files apps though? If the registry key changes %programfiles% to a new location, and anything already in the old location is called via this variable, aren't things going to go kaboom?
0
 
QuitchCommented:
The official take on this key:

http://support.microsoft.com/kb/933700
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now