I encountered this error while installing the SCCM SP2 client on a Windows XP where the install failed with the following message.
MSI: Module C:\WINXP\system32\CCM\VAppRegHandler.dll failed to register. HRESULT -2147221164. Contact your support personnel.
Go to Windows XP machine and run this command as shown below.
You should get this successful message.
Start the client install again and SCCM client installation should be successfull.