Java JDK Prerequisite - Advanced Installer Community
kirkaholic
Posts: 4
Joined: Wed May 28, 2014 8:54 pm

Java JDK Prerequisite

Using Advanced Installer 11.2 Professional. I'm trying to create a silent install prerequisite for the Java 1.8 JDK. I have the prerequisite set up and am using /s /INSTALLDIRPUBJRE=C:\foo\jdk for the UI command line switches. The JDK goes through the install process and the Java log files indicate the install was successful, but, Advanced Installer insists that the Java JDK prerequisite installation failed.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java JDK Prerequisite

Hello and welcome to Advanced Installer forums,

Please note that a prerequisite will be installed based its install conditions defined in the Prerequisite Install Conditions Tab of the related Prerequisite. The Install Conditions section allows you to condition the prerequisite based on custom searches. You can create multiple searches for the same prerequisite. In order to test a condition you can use the [Test] button.
The Prerequisite Search Dialog allows you to add a new search to the installation conditions of a prerequisite or edit an existing one.

Also, be aware by the two options below the “Install Conditions” pane:
  • Install only if at least one condition is false - If this option is selected, at least one search must fail in order to install the prerequisite.
    Install only if all conditions are false - If this option is selected, all searches must fail in order to install the prerequisite.
So, the prerequisite software will be installed according to the enabled option which refers to the install condition that you have defined before.

Also, in order to have a better view about this, can you please send us the .AIP(project file) to support at advancedinstaller dot com so we can investigate this?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kirkaholic
Posts: 4
Joined: Wed May 28, 2014 8:54 pm

Re: Java JDK Prerequisite

Sorry, maybe I wasn't clear on the problem. Prerequisite install conditions are not a problem, that works fine. Advanced installer detects that the JDK is not installed and actual performs the install - calling "jdk[version].exe /s /INSTALLDIRPUBJRE=C:\foo\jdk". The Java JDK installer runs silently and finishes. All JDK files are installed correctly and Java runs correctly. However (and this is the problem), Advanced Installer reports that the installation of the Java JDK was a failure. So, either AI is interpreting something returned from the Java JDK installer as a failure condition, or, there might actually be some problem. But I have no way of determining if this is a JDK issue (all Java JDK logs are good, btw, no errors reported) or an AI issue.
kirkaholic
Posts: 4
Joined: Wed May 28, 2014 8:54 pm

Re: Java JDK Prerequisite

Sorry to pile on, but here's another issue related to the prerequisite check. Though I have only 64-bit versions of windows in my supported windows versions, Advanced Installer is only checking HKLM\Software\Wow6432Node registry values. In fact, the dialog for registry entries only shows this node as HKLM\Software. As a result, since Java is installed as 64-bit and entered into the 64-bit registry, Advanced Installer does not find the key. In fact, perhaps this is what Advanced Installer checks to confirm prerequisites post install, hence the "failure" notification??

I sent you the AIP, btw.
kirkaholic
Posts: 4
Joined: Wed May 28, 2014 8:54 pm

Re: Java JDK Prerequisite

Ok, disregard all, I figured it out based on this post http://www.advancedinstaller.com/forums ... =2&t=28303

After the install of the package AI must be running the Install Conditions check to confirm the package is installed. I was confused because the "Use 64-bit locations..." was below the fold on my config. Using this check box allows me to search the 64-bit registry and the prerequisite now installs and is acknowledged as installed.

BTW, the search for this forum is very difficult to use. Every combination of words was "too common" for any results. I finally stumbled across a search that turned up the post above. Can I suggest that you relax this "too common" restriction and let me decide if there are too many results?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java JDK Prerequisite

Hello Kirk,
the prerequisite now installs and is acknowledged as installed.
I'm glad you got this working by yourself.
BTW, the search for this forum is very difficult to use. Every combination of words was "too common" for any results. I finally stumbled across a search that turned up the post above. Can I suggest that you relax this "too common" restriction and let me decide if there are too many results?
Try the top right google search box on our website instead. It searches our user guide, web-site and all forums.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”