Here's what I did:
- Remove all drives from the PC and connect the SSD only
- Install Windows as normal
- Re-connect your HDD
- Boot into safe mode
- Run the following commands through an administrative command prompt:
- takeown /f "C:\Program Files" /r
- icacls "C:\Program Files" /grant USERNAME:F /t
- takeown /f "C:\Program Files (x86)" /r
- icacls "C:\Program Files (x86)" /grant USERNAME:F /t
You may need to run those commands multiple times.
What those commands did was establish ownership over the two program files folders on your C:\ drive (provided you're running a 64-bit operating system) so that you can proceed to perform the next steps:
- Copy your "Program Files" and "Program Files (x86)" folders to the root your D:\ drive
- Run the following commands through an administrative command prompt:
- del "C:\Program Files" /f /s /q
- del "C:\Program Files (x86)" /f /s /q
- A few things will fail to be deleted (I seem to recall the 'ink' folder in Microsoft Shared being a bit difficult) so you'll probably need to use task manager to kill any running instances of Explorer.exe before running the delete commands.
- Some remnant files will remain and refuse to be deleted; by this point hopefully they will not be too closely attached, however, so you can run the following commands:
- ren "C:\Program Files" "C:\1"
- ren "C:\Program Files (x86)" "C:\2"
- To rename them into things you can delete when you next boot into the operating system.
DO NOT REBOOT YET. Next up is the most important step:
- In an administrative command prompt, run the following command:
- mklink /j "C:\Program Files" "D:\Program Files"
- mklink /j "C:\Program Files (x86)" "D:\Program Files (x86)"
What you just did was establish a directory symbolic link (a junction) that will effectively redirect any requests to C:\Program files to D:\Program Files (the letter path I presume your HDD is taking) on a filesystem level. This way you don't need to change any other settings. When applications install to C:\Program Files, you can let them, confident that they're actually installing to D:\ . It's all very clever.
You will also want to bookmark this link, just in case:
http://www.vilkku.org/2010/02/05/how-to-fix-windows-update-error-80070011/