Tosken
Posts: 15
Joined: Wed Oct 09, 2013 11:51 am

Determine exact java version for prerequisite check

Hi,

our application needs to check for the installed java (jre) version and if the minimum version is lower than 1.8.0_100 the jre will be downloaded from our server.
Until now i am using a registry check on the key "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" and check if it is at least 1.8.0.
The check is correct and for example fails if a jre 1.8 is installed.

But how can i check the java update version (_100 in this case)
Even if i install the jre 1.8.0_100 the registry key still only shows 1.8.
But we need exactly update version 100 or above.

Anyone any ideas how to check this?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Determine exact java version for prerequisite check

Hi,

To achieve this you can add a "Registry SubKeys Enumeration" search as shown in the image below.

Just let us know if you have other questions.

Best regards,
Eusebiu
Attachments
Java Update Search.png
Java Update Search.png (9.74 KiB) Viewed 2630 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”