install SQL 2005 express on vista error 安装程序无法编译托管对象格式(MOF)文件

hoogw 2008-01-18 04:12:09
Vista, install SQL 2005 express got error:

error message:

SQL Server 安装程序无法编译托管对象格式(MOF)文件 c:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof

SQL Server Setup Failed to compile the Managed Object Format (MOF) file D:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof

++++++++++++++++++++++++++++


It is the WMI repository corruption issue.

In cmd window, run this command:

C:/winmgmt /verifyrepository

if it returns something like "WMI repository is inconsistent", then it means the WMI local repositories are corrupted. you can rebuild by runing this:

run this command:
C:/winmgmt /salvagerepository


The problem was my WMI Repository was corrupt. I went to salvage it and it said it failed, but it sent a stop code to the service. I waited 10 seconds after I got this message and tried to salvage it again. It took about 2-3 minutes for the command to execute. Here are the results I experienced.

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Windows\system32>winmgmt /verifyrepository
WMI repository is INCONSISTENT

C:\Windows\system32>winmgmt /salvagerepository
WMI repository salvage failed
Error code: 0x8007041B
Facility: Win32
Description: A stop control has been sent to a service that other running ser
vices are dependent on.


C:\Windows\system32>winmgmt /salvagerepository
WMI repository has been salvaged

C:\Windows\system32>

I did this while the installation of SQL Server Express had the error and was prompting a retry. When it stated that the WMI repository had been salvaged I clicked on Retry. Viola! It continued and completed the installation.

Good Luck. It took two days of searching for me to come across this post.


Solution can be found:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=992054&SiteID=1
...全文
509 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

22,298

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧