|
做封装,打算更改默认软件安装目录,但是网上找了不少方法,有的虽然可以,但是IE出问题,打不开,
第一步复制目录权限:
xcopy "C:\Program Files" "D:\Program Files" /E /H /K /X /Yxcopy "C:\Program Files (x86)" "D:\Program Files (x86)" /E /H /K /X /Yxcopy "C:\Program Files" "D:\Program Files" /H /K /X /Yxcopy "C:\Program Files (x86)" "D:\Program Files (x86)" /H /K /X /Yrmdir /s /q "C:\Program Files"rmdir /s /q "C:\Program Files (x86)"net stop iphlpsvc(?)mklink /J "C:\Program Files" "D:\Program Files"mklink /J "C:\Program Files (x86)" "D:\Program Files (x86)"
=======================================================
因为不打算复制目录,所以/E参数去掉,使用此参数照样不行。
第二步修改注册表:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion]
"CommonFilesDir"="D:\\Program Files (x86)\\Common Files"
"CommonFilesDir (x86)"="D:\\Program Files (x86)\\Common Files"
"CommonW6432Dir"="D:\\Program Files\\Common Files"
"ProgramFilesDir"="D:\\Program Files (x86)"
"ProgramFilesDir (x86)"="D:\\Program Files (x86)"
"ProgramW6432Dir"="D:\\Program Files"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"CommonFilesDir"="D:\\Program Files\\Common Files"
"CommonFilesDir (x86)"="D:\\Program Files (x86)\\Common Files"
"CommonW6432Dir"="D:\\Program Files\\Common Files"
"ProgramFilesDir"="D:\\Program Files"
"ProgramFilesDir (x86)"="D:\\Program Files (x86)"
"ProgramW6432Dir"="D:\\Program Files"
================================================
我的机子是WIN7 64位系统,虚拟机,实体机貌似也不行。
|
上一篇: 华硕B85-PRO GAME信佑无盘PNP下一篇: 怎样取消不共享前面的锁?
|