How to Redirect "Program Files"

Posted on 2007-08-10
Last Modified: 2013-11-05
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:

Question by:VoodooFrog
    LVL 10

    Accepted Solution

    1. Navigate to:
    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.
    LVL 10

    Expert Comment

    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Set up
    is this a key rpobebly?

    Author Comment

    In addition to the one you listed there is also a CommonFilesDir  key.

    LVL 1

    Expert Comment


    Expert Comment

    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?

    Expert Comment

    The official take on this key:

    Featured Post

    Are your corporate email signatures appalling?

    Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

    Join & Write a Comment

    It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now