Changing default install path in Windows 7

5

1

I'm trying to change the default install path in Windows 7 Pro x64. I'm in the Registry Editor and in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion key. I know I need to change ProgramFilesDir and ProgramFilesDir (x86).

What I'm not sure about is the CommonFilesDir, CommonFilesDir (x86) and the ProgramW6432Dir. Do I need to or should I change these values to reflect the new program files directory I'm using?

I tried Googling ProgramW6432Dir and didn't get much help.

Brack

Posted 2012-03-03T20:29:56.523

Reputation: 369

possible duplicate of Is there a way to move c:\program files elsewhere?

– Ƭᴇcʜιᴇ007 – 2012-03-03T21:06:32.833

1I noticed that question, but the answers only deal with what I state I already know. I'm asking about other values in RegEdit. – Brack – 2012-03-03T21:25:04.410

2Well I wound up just changing the drive letter for each of the values I listed, preserving the original structure for the new drive. I also changed the same values in HKEY_LOCAL_MACHINE -> SOFTWARE -> WOW6432Node -> Microsoft -> Windows -> Current Version. This all seems to be working fine now. There is also a CommonW6432Dir I forgot to mention that was changed as well. – Brack – 2012-03-04T19:06:52.557

Answers

3

No idea, but this would be my approach.

I would change the Common FilesDir and the (x86) to point to the new target.

Not sure what the W6432Dir is, but my guess is the path that x86 programs will report when they try to lookup the path of Program Files when running under an x64 OS. Because I don't think this points to a real folder, I'd be extra cautious about this one and do some thorough testing.

This, to me, looks like an incomplete solution. A better solution is to move the folder and drop a junction or a Symlink. This solution would be more bulletproof because it would catch programs who decide to find Program Files through other means.

surfasb

Posted 2012-03-03T20:29:56.523

Reputation: 21 453

1Well thanks for trying. I wound up pointing everything to new directories, preserving the original structure and it appears to be working. So far no issues. – Brack – 2012-03-04T18:58:51.727

@surfasb Great tip... – Apple II – 2012-03-04T19:57:34.350