Tip 37: Default Application Installation Volume NOT on System Partition

By default, most installers place most of the application files in the "<SystemDrive>\program files" directory.
With the full product version of some software, these files can easily total 200MB or more, so your partition (or disk) might very well run out of space.
Alternatively you might want installations to default to another directory instead of "<SystemDrive>\program files".
You can edit the registry to redirect the installation program to another directory on another disk or partition by editing the following registry entry:

Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\Windows\CurrentVersion
Name: ProgramFilesDir
Type: REG_SZ (String value)
Value: Change the disk volume and directory to the location at which you want to install your application
Close the registry editor, restart your computer, and install your application.

Similar "redirections" can be achieved by changing:
 
Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\Windows\CurrentVersion
Name: CommonFilesDir
Type: REG_SZ (String value)
Value: (default=<SystemDrive>\Program Files\Common Files)

Keep in mind that Windows will install future software in the specified directory unless you change the "ProgramFilesDir" registry value back to its original setting.