How do you force install of a program to Drive D instead of Drive C. Thanks
in advance.
Lavert,
You can edit your Registry to drive all program installations to D:
drive.
First, the standard cautionary comment which always applies to all of
us: Back up your registry first! Good advice whenever you are in your
Registry!
Click on Start>Run, then type in "regedit" without the quotes.
Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
Now right-click on the key in the right pane named, "ProgramFilesDir",
again without the quotes, and then click "Modify". In the dialog that
appears, change "C:\\Program Files" to "D:\\Program Files" and then
save that and click File>Exit to quit the Registry Editor.
You may want to create two REG files to change to the new install
location, and one to change it back to C:\, if so desired.
To create the REG file, run Notepad and enter the following as shown
here. Where you see PRESS ENTER HERE, press Enter to create blank
lines.
____________________________________________________________
Windows Registry Editor Version 5.00
PRESS ENTER HERE
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="D:\\Program Files"
PRESS ENTER HERE
Choose File, Save As, and name the file NewLoc.reg. Locate a folder
for your new file and click Save. That is the REG file to change the
installation location to D:\ Drive.
Now, in that same file, change the line:
"ProgramFilesDir"="D:\\Program Files"
to:
"ProgramFilesDir"="C:\\Program Files"
and choose File, Save As, and name this file OldLoc.reg, select a
folder, and click Save. That's the file to change things back if you
want.
Close Notepad and double-click on the NewLoc.reg file to change your
program file installation default from C:\ Drive to D:\ Drive.
To restore the setting to C:\ Drive, if you ever decide to do this
later, double-click on the OldLoc.reg file and it will be changed back
to the way it is now.
____________________________________________________________
There are some programs that have the installation location coded
right in the installation file; they will refuse to go anywhere except
where the developer intended. I don't know why this is ever the case,
but there are a few of those out there, and you'll have to live with
them in C: or do without..
Remember to back up the registry first, and place the backup in a
folder that you will remember. Name the backup with the date in the
file name so you know when it is from, eg, 20060519_REG_BU
Hope this helps!