The MOF compiler could not connect with the WMI server.
This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.
If this error ocurred when you install SQL Server 2008 R2, try to do this one:
- Open console command (Run->CMD with administrator privileges).
- net stop winmgmt
- Rename folder %windir%\System32\Wbem\Repository to other one, for backup purposes (for example _Repository).
- net start winmgmt
Now, when you try to install again, it will work OK.