Friday, September 14, 2007

解决安装vc6时setup.exe或者vs60wiz.exe出错

发现很多开发人员都遇到这个问题(见安装vc6.0一点setup就出错_百度知道),特找来解决方案。

微软自己也提供了一个办法,但是太繁琐(BUG:安装程序 (VS60wiz.exe) 中的挂起或应用程序错误

后来在新闻组上找到一个比较好的解决方案 (XP Pro (New Install) [VS6 Setup Needs to Close] - microsoft.public.vstudio.setup | Google Gruppi)

步骤如下:

(1) 添加下列注册表项(推荐存成reg文件然后运行,注意,并未在第二台机器上实验过,可能会不成功。其原理是运行setup.exe会预先写入如下注册表项,我从别的机器上拷贝过来的)


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Setup]
"VsCommonDir"="C:\\Program Files\\Microsoft Visual Studio\\Common"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Setup\Visual Studio 98]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Setup\Visual Studio 98\SetupWizard]
"crc"=dword:333b30d9
"aspo"=dword:38395356

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Setup\Visual Studio 98\SetupWizard-1033-ENT]
"WizardState"=dword:00000007
"SP State"=dword:00000002
"IE State"=dword:00000002
"heuristics"=hex:70,5c,a3,23,04,00,00,00

(2) 运行安装文件中的ACMSETUP.EXE

希望各位能够成功!

This page is powered by Blogger. Isn't yours?