I often have Java update issues on client PCs. Every time I’ve not been able to simply remove, reinstall, or download and run the offline installer, I have used JavaRA.
Be sure to download the 2.6 version as it states “this is probably the one you want”. Uninstall Java using it, clean up, install. Quite simple.
https://singularlabs.com/software/javara/javara-download/
One example of an error in event viewer while trying to upgrade.
Product: Java 8 Update 40 — Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action installexe, location: C:\Program Files\Java\jre1.8.0_40\installer.exe, command: /s INSTALLDIR=”C:\Program Files\Java\jre1.8.0_40\\” REPAIRMODE=0
I’ve seen 1601, 1602, 1603, 1604 in the Java Update window at times.