Click Start > Run > type regedit, click OK.
Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
Right click ProgramFilesDir in the right pane, select Modify to change it to the desired location.
You may also want to modify ProgramFilesPath to the same location as ProgramFilesDir.
You'll need to reboot to save the changes.