Chinaunix首页 | 论坛 | 博客
  • 博客访问: 362578
  • 博文数量: 157
  • 博客积分: 3001
  • 博客等级: 中校
  • 技术积分: 1330
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-06 13:47
文章分类

全部博文(157)

文章存档

2011年(1)

2010年(28)

2009年(124)

2008年(4)

我的朋友

分类: WINDOWS

2009-09-30 13:59:08

Visual studio 2005的 "VC Package Not Available or Not Registered"


不知道怎么回事,Visual studio 2005 不能创建新的项目,出现一个对话框 "VC Package Not Available or Not Registered"。

到网上查了一下,微软给出的办法是在“安装/删除程序”用"repair",用之,但是无效。

网上有人针对VS2003给出了一个脚本bat文件。


REM -- Begin batch file
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\Visual Database Tools\vdt70.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\VS7Debug\pdm.dll"
regsvr32 /s "C:\winnt\system32\msdxm.ocx"
regsvr32 /s "C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\ExportModeller.dll"
rem regsvr32 /s"C:\Program Files\Common Files\Microsoft Shared\Web Folders\msonsext.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\VS7Debug\pdm.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDesigners7\msddslm.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDesigners7\msdds.dll"
regsvr32 /s "C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\Cdo32.dll"
regsvr32 /s "C:\Program Files\Common Files\Designer\MSADDNDR.DLL"
rem regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\Office10\MSO.DLL"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\VDT\vdt70p.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll"
rem regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSEnv\vsext.olb"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\VCProject.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\Help\hxds.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\VsWizard.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDN\CookDoc.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\VCProjectEngine.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\resedit.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\bined.dll"
regsvr32 /s "C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\Cdo32.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSEnv\dte.olb"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Compsvcspkg.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\vsmacros.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\vsdebug.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDesigners7\msddsf.dll"
regsvr32 /s "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\vcpkg.dll"
REM -- End batch file

但是对于VS2005就找不到现成的脚本了。

所以我写了一个VS2005的脚本,注意,我的VS2005是装在D:\下的,请自行修改,建立一个文本文件,输入下面的内容,在将后缀名改成.bat,双击运行之。

REM -- Begin batch file
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\Visual Database Tools\dsref80.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\VS7Debug\pdm.dll"
regsvr32 /s "C:\WINDOWS\system32\msdxm.ocx"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDesigners8\msddslm.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDesigners8\msdds.dll"
regsvr32 /s "C:\Program Files\Common Files\Designer\MSADDNDR.DLL"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VDT\vdt80p.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSI Tools\mergemod.dll"
rem regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSEnv\vsext.olb"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\VCProject.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\Help\hxds.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VsWizard.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\VCProjectEngine.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\resedit.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\bined.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSEnv\dte80.olb"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Compsvcspkg.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\vsmacros.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\vsdebug.dll"
regsvr32 /s "C:\Program Files\Common Files\Microsoft Shared\MSDesigners8\msddsf.dll"
regsvr32 /s "D:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\vcpkg.dll"
REM -- End batch file

阅读(1868) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~