How-To

How to Change the Directory Windows Installs Programs To

Not all programs allow you to modify where on a system they are installed. On the other hand, most are designed to install in the default program defined by Windows. This can be changed and it’s easy to do.

In Windows 7 and Windows 8 a lot of programs are automatically installed into the Program Files folder by default. If you’re using a tool like Ninite to deploy programs across multiple clients, the only way to change where programs are installed is to change the default installation folder of Windows itself. All it takes to do this is a quick registry fix.

Open the Start Menu and type: regedit. Then click the program/app link that comes up.

regedit windows 7regedit windows 8

Browse to the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion

On a 64 bit system there will be two entries, “ProgramFilesDir” and “ProgramFilesDir (x86)”.

hkey_local_machine program files dir

Double-click one of these entries and type in the desired directory you would like programs to install to by default. Click OK to save changes and exit.

regedit programfilesdir

Now all it takes to apply the registry changes is a restart. Once the reboot is finished Windows will automatically install all future programs to the directory you’ve specified in the registry key. Note that if you changing this registry entry may cause some programs that are already installed to no longer function properly. The workaround is to copy and paste all of the files within the original directory into the new one.


7 Comments

7 Comments

  1. Theo  

    Thankyou so much, everywhere else was only saying about the first regedit directory so nothing worked, lifesaver.

  2. Chris dePaola  

    Have to agree with the other comment, all of the other solutions were deficient. Thanks for the great info!

  3. regedit  

    after following this suggestion I cannot access regedit anymore…

  4. T  

    Doesnt work.

  5. I’ve developed a fail-safe alternative to the given above guide.

    It’s a small open source application that reduced the taken steps simply to “Choose directory” and “Press Apply Button”

    You can download it on sourceforge:
    https://sourceforge.net/projects/install-dir-changer/

    Hope it helps you guys 🙂

    Have a nice day

    • A.B.  

      no, it does not help at all.
      I used it and now most of my software won’t work, so I tried to turn it back, but it wouldn’t give me administrators rights!

      • W0OlDOorS  

        oh that’s unfortunate

        I changed my default install path a while ago and never had problems with it

        Have you tried starting your windows in recovery mode and try to change the registry keys back to the normal state?

        I glanced over the InstallDirChanger code and it basically does the exact same thing. it doesnt seem to install anything weird or modify anything unexpeced.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

To Top