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