install4j Updater -> Java Path not remembered

Viewed 39

Our application is installed first time via install4j and after this installation we have the file inst_jre.cfg in the .install4j folder where the "selection" of the Java installation was selected during the installation. This is fine.

Now, when there is an update with "Update downloader with silent Version check", an update is recognised but again the install4j Assitant asks the user to give the Java installation path. It is not clear why the install4j assitant asks for the Java path again even though the Java path is stored in the inst_jre.cfg file. How can this be avoided?

enter image description here

1 Answers

As of install4j 9, a new installer does not check previous installations for their preferred JRE.

One way to let the next installer know about a JRE is to set an an environment variable with a "Modify an environment variable on Windows" action and add the and environment variable entry on the "General settings->JRE Bundles->Search Sequence" step.

Related