Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Change Program Files location in vista?
New Posts  All Forums:Forum Nav:

# Change Program Files location in vista?

I have a two hard drives. One with Windows vista installed, the other one I want to install my programs onto or speed. How do I edit the environment variables to point to another location (e.x. drive D for my program files?

I don't want Program files on Drive C: Maybe I could make the windows drive other than C:?
Pretty sure you will just have to change the directory every time you install a program, it should ask where you want to install it.

I also wondered if there was a way to change the directory for all programs you are installing, but I never found anything. I just do it manually.
 The Leviathan (20 items)
CPUMotherboardGraphicsRAM
Intel i7 6700k @ 4.7GHz MSI Z170A Gaming M7 12GB NVIDIA Titan X (Pascal) 32GB G.Skill Ripjaws V (DDR4 3200)
Hard DriveHard DriveCoolingCooling
2x 1TB Samsung 960 PRO 193TB unRAID Server 3x 140mm Noctua NF-A14 Noctua NH-D15
OSMonitorKeyboardPower
Windows 10 Pro x64 65" LG 65E6P (4K OLED) Ducky DK9008 Shine 3  Corsair AX860
CaseMouseAudioAudio
Corsair Obsidian 750D Logitech G502 Proteus Sprectrum Denon X7200WA (Receiver) 2x Klipsch RF-7 (Front Speakers)
AudioAudioAudioAudio
4x Klipsch RS-62 (Surround Speakers) Klipsch RC-64 (Center Speaker) 4x Klipsch CDT-5800-C II (Atmos Speakers) 2x SVS PB16-Ultra (Subwoofers)
 The Leviathan (20 items)
CPUMotherboardGraphicsRAM
Intel i7 6700k @ 4.7GHz MSI Z170A Gaming M7 12GB NVIDIA Titan X (Pascal) 32GB G.Skill Ripjaws V (DDR4 3200)
Hard DriveHard DriveCoolingCooling
2x 1TB Samsung 960 PRO 193TB unRAID Server 3x 140mm Noctua NF-A14 Noctua NH-D15
OSMonitorKeyboardPower
Windows 10 Pro x64 65" LG 65E6P (4K OLED) Ducky DK9008 Shine 3  Corsair AX860
CaseMouseAudioAudio
Corsair Obsidian 750D Logitech G502 Proteus Sprectrum Denon X7200WA (Receiver) 2x Klipsch RF-7 (Front Speakers)
AudioAudioAudioAudio
4x Klipsch RS-62 (Surround Speakers) Klipsch RC-64 (Center Speaker) 4x Klipsch CDT-5800-C II (Atmos Speakers) 2x SVS PB16-Ultra (Subwoofers)
well if you use a program like nlite that customizes the windows installation cd u can change the default location for all programs, but if you want to change the default location for programs from now on all you have to do is use a ulitily like "tune up" and there is a option in my computer proprieties i think also.
 my computer (13 items)
CPUMotherboardGraphicsRAM
Intel Core 2 Duo E6600 Conroe 2.4GHz GIGABYTE GA-P35-DQ6 EVGA GeForce 8800GTS 640MB OCZ Reaper HPC Edition 2GB
Hard DriveOptical DriveOSMonitor
500 gb sata SAMSUNG 18X DVD±R DVD Burner windows xp, windows vista, fedora core 7 Hanns·G 22"
PowerCase
Antec True Power Trio 550W Antec P182 Gun Metal Black
 my computer (13 items)
CPUMotherboardGraphicsRAM
Intel Core 2 Duo E6600 Conroe 2.4GHz GIGABYTE GA-P35-DQ6 EVGA GeForce 8800GTS 640MB OCZ Reaper HPC Edition 2GB
Hard DriveOptical DriveOSMonitor
500 gb sata SAMSUNG 18X DVD±R DVD Burner windows xp, windows vista, fedora core 7 Hanns·G 22"
PowerCase
Antec True Power Trio 550W Antec P182 Gun Metal Black
hi there,
i have just figured out a way to do this. here's a summary of what i did:

1. copy the 'Program Files(x86)' folder to another drive (D: in my case)
2. reboot, and press F8 during boot to enter the boot menu, and choose 'safe mode with commandprompt'
3. enter the following:
Code:
``````takeown /f "C:\\Program Files(x86)" /r
cacls "C:\\Program Files(x86)" /G username:F /T

del "C:\\Program Files(x86)" /F /S /Q
rmdir "C:\\Program Files(x86)" /S /Q

mklink /D "C:\\Program Files(x86)" "D:\\Program Files(x86)"

shutdown /R```
```
after this, your system should use the program files folder on the D: drive.

***WARNING***
The procedure described here has the potential of seriously messing with your OS. Please make sure you have backups of all relevant files before trying any of this. While this worked for me, i cannot guarantee that it will work for you.
 Dawn (13 items)
CPUMotherboardGraphicsRAM
Phenom 9500 XFX Geforce 8200 XFX Geforce 9600 GSO 4GB
Hard DriveOptical DriveOSMonitor
750GB DVDRW/Lightscribe Vista 64bit/Arch Linux(dualboot) 19" 4:3
KeyboardPowerCaseMouse
modified Dynex keyboard 650W custom Logitech
 Dawn (13 items)
CPUMotherboardGraphicsRAM
Phenom 9500 XFX Geforce 8200 XFX Geforce 9600 GSO 4GB
Hard DriveOptical DriveOSMonitor
750GB DVDRW/Lightscribe Vista 64bit/Arch Linux(dualboot) 19" 4:3
KeyboardPowerCaseMouse
modified Dynex keyboard 650W custom Logitech
There is a key in the registry you can change, save all that directory linking...

type 'regedit' in the start menu search bar and click the icon that appears..
Navigate to 'HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion' and modify the 'ProgramFilesDir' key to the directory you require..

Hope this helps.
Wizborg
ah, i did not know about the registry key... would that preserve the already installed programs though?
 Dawn (13 items)
CPUMotherboardGraphicsRAM
Phenom 9500 XFX Geforce 8200 XFX Geforce 9600 GSO 4GB
Hard DriveOptical DriveOSMonitor
750GB DVDRW/Lightscribe Vista 64bit/Arch Linux(dualboot) 19" 4:3
KeyboardPowerCaseMouse
modified Dynex keyboard 650W custom Logitech
 Dawn (13 items)
CPUMotherboardGraphicsRAM
Phenom 9500 XFX Geforce 8200 XFX Geforce 9600 GSO 4GB
Hard DriveOptical DriveOSMonitor
750GB DVDRW/Lightscribe Vista 64bit/Arch Linux(dualboot) 19" 4:3
KeyboardPowerCaseMouse
modified Dynex keyboard 650W custom Logitech
This is still, in the upcoming age of Win 7, an important issue. The ProgramData setting can be set in an unattended answer file, but some people say that only changes part of the \\Program Files\\ directory, mainly the actual "ProgramData" part, whereas most software being installed is still landing in same old Program Files folder. Anyone who could confirm/deny this here for sure? Also, is pulling a "replace all" \\Program Files\\ string in regedit a safe solution? Or will I end up with an unstable system?

G.
Gew, you should only need to change the keys in 'HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion' to reflect the changes, which can be put in a .reg file to run. I would also do a mklink /J (junction) instead of /D (directory link) as it's more stable. If you need a hand writing a .reg file, let me know.

It also works with the Users, ProgramData and Program Files (x86) folders (for 64-bit machines), though you'd need to change values in 'HKEY_LOCAL_MACHINE \\ Software \\Microsoft \\ Windows NT \\ CurrentVersion \\ ProfileList' as well if you were doing any of that. I've had this setup for over a year now, and did it again when I migrated to 7 with no problems..

Territorial, I know it's an old thread now, but as long as your Program Files directory is where the key is pointing, it shouldn't be a problem.

Hope this helps.
Wizborg
Quote:
 Originally Posted by Wizborg There is a key in the registry you can change, save all that directory linking... type 'regedit' in the start menu search bar and click the icon that appears.. Navigate to 'HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion' and modify the 'ProgramFilesDir' key to the directory you require.. Hope this helps. Wizborg

Would this work in Win7 too? I getting sick of having to create separate folder for each program I install.
 Paycheck Absorption Machine (13 items)
CPUMotherboardGraphicsRAM
Core i7 920 D0 | 3.8GHz @ 1.175v Asus P6X58D Premium Evga/Asus GTX480 SLI | 825MHz 6GB Patriot Gamer Series 1600MHz DDR3
Hard DriveOptical DriveOSMonitor
Intel 80GB SSD | Seagate 300GB | 2xWD 2TB Asus DVD-RW Windows 7 Pro 64-bit Samsung 2233RZ | 120Hz
KeyboardPowerCaseMouse
Deck Legend 105 Ice Seasonic X-850 Lian Li PC-A71F Logitech G5 Laser
None
 Paycheck Absorption Machine (13 items)
CPUMotherboardGraphicsRAM
Core i7 920 D0 | 3.8GHz @ 1.175v Asus P6X58D Premium Evga/Asus GTX480 SLI | 825MHz 6GB Patriot Gamer Series 1600MHz DDR3
Hard DriveOptical DriveOSMonitor
Intel 80GB SSD | Seagate 300GB | 2xWD 2TB Asus DVD-RW Windows 7 Pro 64-bit Samsung 2233RZ | 120Hz
KeyboardPowerCaseMouse
Deck Legend 105 Ice Seasonic X-850 Lian Li PC-A71F Logitech G5 Laser
None
Quote:
 Originally Posted by Wyldefang Would this work in Win7 too? I getting sick of having to create separate folder for each program I install.
It works fine in 7, please see my previous post.. ^^^^
New Posts  All Forums:Forum Nav:
Return Home
Back to Forum: Windows
• Change Program Files location in vista?
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Change Program Files location in vista?