One of the possible reasons for this error would be, If you have uninstalled any other older versions of java previously, it might have left some
java registry entries. It may cause 1722 Error in installing the newer version. To cleanup the registry entries please refer
all the PCs have 8u31 installed using SCCM and Patch Manager. I believe PM should take care about the correct update/uninstall procedure, from A to Z.
JRE 8 in PM has not followed the same update/uninstall procedure as JRE 7 as it will not uninstall any previous version. I dont know if this is a PM issue or a Java issue but it is extremely annoying and frustrating.
If you have machines that do not have Java you need to use the Java Runtime Environment 8u40 (x86 for x64) package
if you have machines with old versions of Java you need to use the Java Runtime Environment 8u40 (x86 for x64) (Upgrade) package
Then you will need to go back and uninstall any previous version of Java. I have been using PSEXEC to remove the old versions being lazy and not wanting to create a custom java package that will uninstall the old version
We do not have SCCM, but I have noticed issues with installing the JRE 8 clients. The older client seems to be still installed. Luckily, I just remove the older client after the new one gets installed. And there are very few clients running JRE in our environment.