Zend certified PHP/Magento developer

Java JDK 20 fails on install windows 10

When I try to install jdk 20, it fails.
When I try to install with the MSI, it fails almost immediately with the message “installation failed. The wizard was interrupted before Java(TM) Se development kit 20.0.1 (64-bit) could be completely installed…..”
When I try with the “exe” version, it gives no message but just seems to quit on it’s own.

I noticed that there is an old Java 8 Update 241 installed and I thought that could be the problem, so I tried uninstalling that. The uninstall failed because it could not find the .msi file for the uninstall. The Java program folder is in the program files (x86) folder indicating that this is a 32 bit installation. So based upon another thread here on superuser, I went to the java archive site and downloaded the jre-8u241-windows-i586.exe file which is the same release. I tried to install but it failed because the install folder already existed. So then I renamed the install folder. Tried again and it stopped on error 1638 that indicates that there is already a version installed and it can’t install over it.

So then I tried the iobit uninstaller to uninstall the old version. It seemed to do a bunch of work and claimed to uninstall it and delete useless registry entries. Now the Java 8 Update 241 no longer shows up on the Progams and Features list.

Retried the 32 bit Java 8 Update 241 and it again crashed on error 1638.

Tried both ways of installing the JDK again and they still fail the same way.

I checked in the registry and there is, suspiciously, a reference to Java 8 update 241 in the Programs tree under the Install tree.

Any suggestions on what to try next?

Thanks!