vs2005sp1出来已经有一段时间了,由于安装速度太慢,我一直都没有安装,今天遇到一个vs的bug,不得已需要安装sp1,上网找了一下,发现一个解决安装速度慢的方案。
之所以速度慢是很大程度上是因为windows installer的cache造成,在安装时暂时禁用掉windows installer的cache可以极大的加速sp1的安装,而且可以节省1.3G的磁盘空间。
将下面的代码存为bat文件,通过这个bat来安装sp1
regexportHKLM\Software\Policies\Microsoft\Windows\Installerinstaller.reg
regaddHKLM\Software\Policies\Microsoft\Windows\Installer
/
vMaxPatchCacheSize
/
tREG_DWORD
/
d
0
/
f
netstopmsiserver
start
/
waitVS80sp1
-
KB926601
-
X86
-
ENU.exe
regdeleteHKLM\Software\Policies\Microsoft\Windows\Installer
/
vMaxPatchCacheSize
/
f
regimportinstaller.reg
netstopmsiserver
del
/
qinstaller.reg
2
>
nul
另外,VS2005的intellisense对C++来说实在太慢,代码量大的时候cpu占用率一直在100%,功能也比不上VA,将 Microsoft Visual Studio 8\VC\vcpackages\feacp.dll改名直接禁用之。
之所以速度慢是很大程度上是因为windows installer的cache造成,在安装时暂时禁用掉windows installer的cache可以极大的加速sp1的安装,而且可以节省1.3G的磁盘空间。
将下面的代码存为bat文件,通过这个bat来安装sp1
regexportHKLM\Software\Policies\Microsoft\Windows\Installerinstaller.reg
regaddHKLM\Software\Policies\Microsoft\Windows\Installer
/
vMaxPatchCacheSize
/
tREG_DWORD
/
d
0
/
f
netstopmsiserver
start
/
waitVS80sp1
-
KB926601
-
X86
-
ENU.exe
regdeleteHKLM\Software\Policies\Microsoft\Windows\Installer
/
vMaxPatchCacheSize
/
f
regimportinstaller.reg
netstopmsiserver
del
/
qinstaller.reg
2
>
nul
另外,VS2005的intellisense对C++来说实在太慢,代码量大的时候cpu占用率一直在100%,功能也比不上VA,将 Microsoft Visual Studio 8\VC\vcpackages\feacp.dll改名直接禁用之。
本文介绍了一种快速安装VS2005 SP1的方法,通过禁用Windows Installer缓存,不仅大大加快了安装速度,还节省了1.3GB的磁盘空间。此外,针对VS2005 C++ IntelliSense导致CPU占用率过高的问题,提供了禁用该功能的解决方案。
3782

被折叠的 条评论
为什么被折叠?



