Skylla
Posts: 17
Joined: Thu Jan 24, 2013 1:44 pm

Conditionally require Java

Hello

I have an installer with chained packages.
One of the chained packages require java to be installed.
This chained package is only installed if certain choices are made in the main package.
Thus the complete installation will sometimes require java to be installed (depending on the choices made during installation).

In other words java is not a launch condition on the main package, it is only a condition if certain options are selected.

I would like to warn users (or even block installation) when they make these choices if Java 6 or larger is not installed.
How do i accomplish that?

I suppose I need to make my own search for a registration key and then check result of the search?
But what reg. key should i use?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditionally require Java

Hello,
I would like to warn users (or even block installation) when they make these choices if Java 6 or larger is not installed.
How do i accomplish that?
In order to achieve what you want you can display a warning child dialog on an installation dialog if certain conditions are fulfilled and java is not installed.
I suppose I need to make my own search for a registration key and then check result of the search?
But what reg. key should i use?
For this you can take a look on our predefined "Java Runtime Environment" and "Java Development Kit" prerequisite install conditions. You can add similar extended search on our "Search" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”