运行中输入regedit打开注册表编辑器
展开注册表“HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\ CurrentVersion”分支,
在窗口的右侧区域找到名为“ProgramFilesDir”和“ProgramFilesPath”的键值
将其原键值“C:\Program Files”改为“D:\Program Files”,关闭注册表
运行中输入regedit打开注册表编辑器
展开注册表“HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\ CurrentVersion”分支,
在窗口的右侧区域找到名为“ProgramFilesDir”和“ProgramFilesPath”的键值
将其原键值“C:\Program Files”改为“D:\Program Files”,关闭注册表