adoptium / installer

Installer scripts for Eclipse Temurin binaries
Apache License 2.0
149 stars 75 forks source link

Windows installer backward compatibility issue (Windows Registry) #467

Open mast76 opened 3 years ago

mast76 commented 3 years ago

Summary

Adoptium MSI installer does not set the same registry settings as the Oracle installer.

The most important one missing is "CurrentVersion". But also the entire "Java Runtime Environment" (a.k.a. public JDK) section is missing.

Steps to reproduce

Expected results

The OracleJDK registry settings for JDK:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8]
"JavaHome"="C:\\Program Files\\Java\\jdk1.8.0_111"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_111]
"JavaHome"="C:\\Program Files\\Java\\jdk1.8.0_111"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_111\MSI]
"INSTALLDIR"="C:\\Program Files\\Java\\jdk1.8.0_111\\"
"NOSTARTMENU"="0"

The OracleJDK registry settings for public JRE:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8]
"RuntimeLib"="C:\\Program Files\\Java\\jre1.8.0_111\\bin\\server\\jvm.dll"
"JavaHome"="C:\\Program Files\\Java\\jre1.8.0_111"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_111]
"JavaHome"="C:\\Program Files\\Java\\jre1.8.0_111"
"MicroVersion"="0"
"RuntimeLib"="C:\\Program Files\\Java\\jre1.8.0_111\\bin\\server\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_111\MSI]
"INSTALLDIR"="C:\\Program Files\\Java\\jre1.8.0_111\\"
"JU"=""
"OEMUPDATE"=""
"FROMVERSION"="NA"
"FROMVERSIONFULL"=""
"PRODUCTVERSION"="8.0.1110.14"
"EULA"=""
"JAVAUPDATE"="1"
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"FullVersion"="1.8.0_111-b14"

Actual results

The OpenJDK registry settings

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8]
"JavaHome"="C:\\Program Files\Java\\jdk-8.0.302.8-hotspot\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\8.0.302.8]
"JavaHome"="C:\\Program Files\Java\\jdk-8.0.302.8-hotspot\\"

Triaging info

Java version:

openjdk version "1.8.0_302" OpenJDK Runtime Environment (Temurin)(build 1.8.0_302-b08) OpenJDK 64-Bit Server VM (Temurin)(build 25.302-b08, mixed mode)

What is your operating system and platform? Windows 7 64bit

How did you install Java?

Used the MSI installer.

Did it work before? Yes, with OracleJDK 1.8.0_111

Did you test with other Java versions? Yes, with OracleJDK 1.8.0_111

karianna commented 3 years ago

When you run the installer there is an option for it to behave like Oracle's. Those checkboxes are unticked by default so you'll need to rerun the installer and select them

mast76 commented 3 years ago

@karianna Please read my description once more. I am using the install option "JavaSoft (Oracle) registry keys". It only sets a small subset of the registry keys.

mast76 commented 3 years ago

@karianna Thanks.

github-actions[bot] commented 2 years ago

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.