Prerequisite download link - Advanced Installer Community
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Prerequisite download link

Hi,

My installer requires JRE minimum version 1.6. I am using the built in condition in "Predefined Software Launch Conditions" to set the requirement. When the prerequisite fails, I wish to display a link on the error prompt to download the resources. Is there a way to achieve it using the default error pop up window ? I googled and didn't find much information on this.

Code: Select all

<COMPONENT cid="caphyon.advinst.msicomp.MsiLaunchConditionsComponent">
    <ROW Condition="AI_JREVERFOUND = 1" Description="[ProductName] cannot be installed on systems with JRE version lower than [AI_MINJREVERSION] " DescriptionLocId="AI.LaunchCondition.Jre" IsPredefined="true" Builds="DefaultBuild"/>
    <ROW Condition="VersionNT" Description="[ProductName] cannot be installed on [WindowsFamily9X]" DescriptionLocId="AI.LaunchCondition.No9X" IsPredefined="true" Builds="DefaultBuild"/>
</COMPONENT>

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisite download link

Hello,

In the Launch Conditions view you can specify conditions that must be fulfilled in order for your application to install.
The defined launch conditions are evaluated during the LaunchConditions Action action. If any of these conditional statements fail, an error message is displayed to the user and the installation is terminated.

Since your application require the JRE minimum version 1.6, you can add it as a prerequisite to your installation package.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Re: Prerequisite download link

Dan,

Thanks for the reply. I am aware of how to set up launch condition.

My problem is regarding how to show a link on the error prompt if the prerequisite requirement fails. I want to show the link to JRE resources on Oracle site for the user on installation error prompt window. Hope I am clear now.


-Mahesh
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prerequisite download link

Hello Mahesh,

First of all we apologize for our delayed reply.

Unfortunately, we don't have support to add an URL link in our launch condition messages. In order to achieve this you can try to create your own custom action which will perform the search for JRE and:
1. if the search fails you should display an error message containing the URL link and return an error code (a non zero exit code) so that the installation stops
2. if the search succeeds you should return a success return code (zero) so that the installation goes on

If you have any question let us know.

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

Return to “Building Installers”