Windows 7 Forums Search

Go Back Windows 7 Forums > Seven Forums > Tutorials » Program Files Directory - Change Default for Installs

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7 - Program Files Directory - Change Default for Installs


 

Program Files Directory - Change Default for Installs

How to Change the Default Program Files Directory for Installs
Published by reghakr
11-17-2009
Default Program Files Directory - Change Default for Installs

How to Change the Default Program Files Directory for Installs

Information
This will show you how to change the default path to be used to install programs to automatically in Windows 7. If you're like me and have a separate partition to install your 3rd party apps,



Here's a good solution:

CHANGING THE DEFAULT LOCATION FOR INSTALLING APPLICATIONS

Most programs install in C:\Program Files by default. You can change this default installation directory by editing the registry.

Open the Registry Editor by selecting Start > Run > Regedit.

Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version.

In the right pane, double-click ProgramFilesDir and change the path in the String Editor to the drive and folder you want (i.e. D:\Program Files). You must also modify the entry for ProgramFilesPath. If your path is E:\ like mine is, the path would be E:\Program Files

Exit the Registry Editor and restart your computer. Be aware that some programs still require installation in the C:\Program Files folder.

Much easier than highlighting that C and replace it with another letter.

Program Files Directory - Change Default for Installs-install.jpeg
Program Files Directory - Change Default for Installs-programfiles.jpeg
Program Files Directory - Change Default for Installs-registryr.jpeg

Works perfectly



.
Published by
reghakr's Avatar
Forensic Consultant
Join Date: May 2009
Location: Pennsylvania
Posts: 1,678
reghakr has much to be proud ofreghakr has much to be proud ofreghakr has much to be proud ofreghakr has much to be proud ofreghakr has much to be proud ofreghakr has much to be proud ofreghakr has much to be proud ofreghakr has much to be proud of

Tutorial Tools
11-17-2009   #1
RugbyHoe


Windows 7 Ultimate x64
Arvada, CO
 
 


Good tip.

Those of you running 64-bit operating systems may also want to modify the ProgramFilesDir (x86) and ProgramW6432Dir entries in a similar fashion.

My System SpecsSystem Spec
01-22-2010   #2
irha


windows xp
 
 


I like moving the program files location because simply changing the location of the installation doesn't always prevent files being written to the default. E.g., some files are written to "c:\Program Files\Common Files" and some installers invoke silent installers for other programs without giving us an opportunity to change the target. Changing the location of Program Files and the user profile directory are the one of the first things I do after any fresh installation.
My System SpecsSystem Spec
01-23-2010   #3
reghakr


Windows 7 Pro & Vista Home Premium
Pennsylvania
 
 


Moving files is not a good idea as the registry entries have been made for the original destination directory.

Yes, some files are installed into the C:\Program Files\Common Files directory and these should be left alone.

BTW, when are you going to install Windows 7?
My System SpecsSystem Spec
01-24-2010   #4
irha


windows xp
 
 


I just installed yesterday night following this guide. What kind of problems are you expecting by moving common files? Quite a few seem to have followed the above guide and reported success.

Last edited by irha; 01-24-2010 at 10:28 AM.. Reason: added question.
My System SpecsSystem Spec
01-25-2010   #5
reghakr


Windows 7 Pro & Vista Home Premium
Pennsylvania
 
 


Even though the install is in a different drive, some place flies in the c:\Program Files folder.

The only way to change that default directory is through the registry.
My System SpecsSystem Spec
02-03-2010   #6
kquill


windows 7
 
 

Can't save files in Program files

When I attempt to download files to Program Files, I get an error message telling me that I must see the administrator.
My System SpecsSystem Spec
02-04-2010   #7
reghakr


Windows 7 Pro & Vista Home Premium
Pennsylvania
 
 


Download to the desktop so they're easier to find.
My System SpecsSystem Spec
Comment

Tutorial Tools



Similar Threads for: Program Files Directory - Change Default for Installs
Windows 7 Tutorial Category
Good/Bad of using Program Files (x86) vs Program Files General Discussion
Installation Can't change boot directory. Installation & Setup
Solved Program Files and Program Files (x86) folders? General Discussion
Backup files fail to backup files in Program Files General Discussion
copying files to mydocs or program files General Discussion


All times are GMT -5. The time now is 06:59 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Windows 7 Tutorial powered by GARS 2.1.9 ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26