dcbasso
Posts: 24
Joined: Thu May 10, 2012 6:31 pm

Custom Launch Conditions...

Hi everyone...
I need to check java version on client system, and if the client is using Java 1.6 (update 32 or newer) on Windows XP I can´t install the system, and I need to alert my client to change the java version to 1.6 (update 24).

How can I do that?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Launch Conditions...

Hello,

If your application needs Java 1.6 you can add it as a prerequisite and/or launch condition. They're already predefined so all you need to do is choose them from the list.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dcbasso
Posts: 24
Joined: Thu May 10, 2012 6:31 pm

Re: Custom Launch Conditions...

In predefined Advanced Installler, if I select the Java 1.6 on Windows XP, and on Install on the Windows XP. Then installer recognize that already have a newer java installed (1.7).
What is the action that my Installer will do? Show an Error? Ignore the Java Install? Show that the user need to remove this other java version and install the java 1.6?

Thanks.
dcbasso
Posts: 24
Joined: Thu May 10, 2012 6:31 pm

Re: Custom Launch Conditions...

I just need to show to user that Windows XP need to use the Java 6 update 24.
Windows vista and highers can use Java 6 update or newer.

How to WARN/ALERT the uset with WIN XP with newer version of java that he need to change the Java. I Just won't to alert, i don't want to install or remove the java from the user computer.. Undestand?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Launch Conditions...

If your application requires a certain Java version, the recommended approach is to set a launch condition for its installation. Our team usually links inline relevant user guide articles (blue text).

To set a simple warning:
- follow our How do I display a message box? article
- add the "Display message box" custom action without sequence
- execute it through a DoAction published event set on a "Next" button (How do I execute a custom action when a button is pushed?)
- condition the custom action using a search added from the Search page
*this condition should determine if the required Java version is installed on the target machine
*another hint on this step is to copy the Java predefined prerequisite detection criteria search (Prerequisites page -> Java prerequisite -> Install Conditions Tab)
- you can use the How do I install resources based on the Operating System version? article to set the OS condition

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”