在WIN2000下,经常碰到由于系统文件未注册或丢失导致不能正常打开添加删除程序。按MS KB266668,可对其进行修复。
参考:http://support.microsoft.com/?kbid=266668
问题症状与处理方法:
1、不能打开“添加删除程序”,将如下内容保存为一批处理文件,运行后一般可解决。
regsvr32 -s %systemroot%
System32
Appwiz
.
cpl
regsvr32 -s %systemroot% System32 Mshtml . dll
regsvr32 -s %systemroot% System32 Jscript . dll
regsvr32 -s %systemroot% System32 Msi . dll
regsvr32 -s %SystemDrive% Program Files Common Files System Ole DB Oledb32 . dll
regsvr32 -s %SystemDrive% Program Files Common Files System Ado Msado15 . dll
regsvr32 -s %systemroot% System32 Msdart32 . dll
regsvr32 -s %systemroot% System32 Mshtmled . dll
regsvr32 -s %systemroot% System32 Mswstr10 . dll
rem 如果“添加/删除程序”工具显示的信息不完整或显示空白,请验证文件日期,并注册下列文件(如果可能):
regsvr32 -s %systemroot% System32 Gdi32 . dll
regsvr32 -s %systemroot% System32 User32 . dll
regsvr32 -s %systemroot% System32 Msvcrt . dll
regsvr32 -s %systemroot% System32 Ole32 . dll
regsvr32 -s %systemroot% System32 Shlwapi . dll
regsvr32 -s %systemroot% System32 Imm32 . dll
regsvr32 -s %systemroot% System32 Indicdll . dll
regsvr32 -s %systemroot% System32 Urlmon . dll
regsvr32 -s %systemroot% System32 Version . dll
regsvr32 -s %systemroot% System32 Lz32 . dll
regsvr32 -s %systemroot% System32 Comctl32 . dll
regsvr32 -s %systemroot% System32 Clbcatq . dll
regsvr32 -s %systemroot% System32 Oleaut32 . dll
regsvr32 -s %systemroot% System32 Mlang . dll
regsvr32 -s %systemroot% System32 Shell32 . dll
regsvr32 -s %systemroot% System32 Shdoclc . dll
regsvr32 -s %systemroot% System32 NetapI32 . dll
regsvr32 -s %systemroot% System32 Secur32 . dll
regsvr32 -s %systemroot% System32 Netrap . dll
regsvr32 -s %systemroot% System32 Samlib . dll
regsvr32 -s %systemroot% System32 Ws2_32 . dll
regsvr32 -s %systemroot% System32 Ws2help . dll
regsvr32 -s %systemroot% System32 Wldap32 . dll
regsvr32 -s %systemroot% System32 Dnsapi . dll
regsvr32 -s %systemroot% System32 Wsock32 . dll
regsvr32 -s %systemroot% System32 Plugin . ocx
regsvr32 -s %systemroot% System32 Wininet . dll
regsvr32 -s %systemroot% System32 Crypt32 . dll
regsvr32 -s %systemroot% System32 Msasn1 . dll
regsvr32 -s %systemroot% System32 Msls31 . dll
regsvr32 -s %systemroot% System32 Imgutil . dll
regsvr32 -s %systemroot% System32 Cscui . dll
regsvr32 -s %systemroot% System32 Cscdll . dll
regsvr32 -s %systemroot% System32 Mshtml . dll
regsvr32 -s %systemroot% System32 Jscript . dll
regsvr32 -s %systemroot% System32 Msi . dll
regsvr32 -s %SystemDrive% Program Files Common Files System Ole DB Oledb32 . dll
regsvr32 -s %SystemDrive% Program Files Common Files System Ado Msado15 . dll
regsvr32 -s %systemroot% System32 Msdart32 . dll
regsvr32 -s %systemroot% System32 Mshtmled . dll
regsvr32 -s %systemroot% System32 Mswstr10 . dll
rem 如果“添加/删除程序”工具显示的信息不完整或显示空白,请验证文件日期,并注册下列文件(如果可能):
regsvr32 -s %systemroot% System32 Gdi32 . dll
regsvr32 -s %systemroot% System32 User32 . dll
regsvr32 -s %systemroot% System32 Msvcrt . dll
regsvr32 -s %systemroot% System32 Ole32 . dll
regsvr32 -s %systemroot% System32 Shlwapi . dll
regsvr32 -s %systemroot% System32 Imm32 . dll
regsvr32 -s %systemroot% System32 Indicdll . dll
regsvr32 -s %systemroot% System32 Urlmon . dll
regsvr32 -s %systemroot% System32 Version . dll
regsvr32 -s %systemroot% System32 Lz32 . dll
regsvr32 -s %systemroot% System32 Comctl32 . dll
regsvr32 -s %systemroot% System32 Clbcatq . dll
regsvr32 -s %systemroot% System32 Oleaut32 . dll
regsvr32 -s %systemroot% System32 Mlang . dll
regsvr32 -s %systemroot% System32 Shell32 . dll
regsvr32 -s %systemroot% System32 Shdoclc . dll
regsvr32 -s %systemroot% System32 NetapI32 . dll
regsvr32 -s %systemroot% System32 Secur32 . dll
regsvr32 -s %systemroot% System32 Netrap . dll
regsvr32 -s %systemroot% System32 Samlib . dll
regsvr32 -s %systemroot% System32 Ws2_32 . dll
regsvr32 -s %systemroot% System32 Ws2help . dll
regsvr32 -s %systemroot% System32 Wldap32 . dll
regsvr32 -s %systemroot% System32 Dnsapi . dll
regsvr32 -s %systemroot% System32 Wsock32 . dll
regsvr32 -s %systemroot% System32 Plugin . ocx
regsvr32 -s %systemroot% System32 Wininet . dll
regsvr32 -s %systemroot% System32 Crypt32 . dll
regsvr32 -s %systemroot% System32 Msasn1 . dll
regsvr32 -s %systemroot% System32 Msls31 . dll
regsvr32 -s %systemroot% System32 Imgutil . dll
regsvr32 -s %systemroot% System32 Cscui . dll
regsvr32 -s %systemroot% System32 Cscdll . dll
2、打开“添加删除程序”有错误提示框
An unexpected error occurred.Class not registered
res://appwiz.cpl/listbox.htc
Line:225
大部分原因是用户安装了某软件后,在SYSTEM32目录下创建了msado15.dll,并使之注册,当软件卸载时,文件被删除,但注册表未更新。检查注册表[HKEY_CLASSES_ROOT/CLSID/{00000535-0000-0010-8000-00AA006D2EA4}/InprocServer32]其值可能是"c:/winnt/system32/msado15.dll",但正常值应为"C:/Program Files/Common Files/System/ado/msado15.dll"。修改成正确注册表值后一般可恢复正常。另也可以按第1步运行注册系统文件,以确保程序正常运行。