When trying to install WCF Data Services 5.0 prior to installing SharePoint 2013 setup failed with the error: "0x800b010a - a certificate chain could not be built to a trusted root authority".
My test server is in a disconnected environment. I looked up the error message and the resolution was available in the KB Article http://support.microsoft.com/kb/931125 . I downloaded the update package intended for Windows XP as a workaround and it worked out. Note that "It is recommended that systems running Windows client or server SKUs in disconnected environments (ex. where the automatic root update mechanism doesn’t work, since connectivity to Microsoft Update is not available) should install the root update package. The root update package will install on Windows Vista and Windows 7 as a workaround in disconnected environments, however it is not recommended that systems that have network connectivity to Microsoft Update install the root update package, since the automatic root update mechanism will work for them." See the support article for more information: http://support.microsoft.com/kb/931125
This didn't work for me. In order to install WCF Data Services on Windows 2012 R2 I had to run the setup until the error message shown at the top of the article was displayed. Leave that dialog box open and click on the link to open the log file. Open
explorer, and find the copy of WCFDataServices.exe inside the %TEMP% directory that is referenced in the messages in the log file. In the properties dialog for that file goto the Digital Signatures tab and click "Details" then "View Certificate" and then look
at the Certification Path tab. This will contain a hierarchy of 3 certificates. Select the middle one, view certificate, and install the certificate to the default location. Close all the open dialogs. Finally, set your system clock to a date within the validity
period of the certificate - e.g. 1 Apr 2013. Then the setup program will run!