vs2005sp1出來已經(jīng)有一段時(shí)間了,由于安裝速度太慢,我一直都沒有安裝,今天遇到一個(gè)vs的bug,不得已需要安裝sp1,上網(wǎng)找了一下,發(fā)現(xiàn)一個(gè)解決安裝速度慢的方案。
之所以速度慢是很大程度上是因?yàn)閣indows installer的cache造成,在安裝時(shí)暫時(shí)禁用掉windows installer的cache可以極大的加速sp1的安裝,而且可以節(jié)省1.3G的磁盤空間。
將下面的代碼存為bat文件,通過這個(gè)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對(duì)C++來說實(shí)在太慢,代碼量大的時(shí)候cpu占用率一直在100%,功能也比不上VA,將Microsoft Visual Studio 8\VC\vcpackages\feacp.dll改名直接禁用之。