Registry checks fail with error: HRESULT E_FAIL Has Been Returned from a call to a COM component