Hi.
I am using Advanced Installer 17.6 to install a Java application and to create an executable Java wrapper. Therefore it is required that the machine installing and running this application has Java installed, but it is not desirable that Java is installed as part of the application. Hence the installer searches for Java installations on the machine and if not found it warns the user, but finishes the installation of the Java application. Upon start, the Java application will prompt for a path to the Java installation and writes this path to the JRE Path of the .ini file of the application.
Now to my problem. Installers and executables built with Advanced Installer seem to only search for Java installations in the JavaSoft registry (after looking for a JRE Path in the .ini file of the application, https://www.advancedinstaller.com/user- ... ncher.html). However, various Java installations are not written to the JavaSoft registry. This can e.g. happen when installing Java from a .zip file.
I had some considerations that it might be possible to search for Java on PATH, in other registries than JavaSoft, or in other places (and even ask the user, which version should be used), but then the chosen Java installation path still has to be written to the JRE Path of the .ini file. This solution kind of hardcodes the Java path, which is causing issues, if the user wants to e.g. upgrade Java. So, I would like to know if there is a possibility to find installed Java installations, which are not written to the JavaSoft registry key? I mean in a more flexible and reliable way, which does not require that Java is installed/pointed at in a specific place?
Best regards,
Anna
FOLLOW US
Get the latest news in Application Packaging