Custom Launch Conditions...

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Custom Launch Conditions...

Postby dcbasso » Sat May 12, 2012 2:59 pm

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?
dcbasso
 
Posts: 24
Joined: Thu May 10, 2012 6:31 pm

Re: Custom Launch Conditions...

Postby mihai.petcu » Mon May 14, 2012 11:00 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Launch Conditions...

Postby dcbasso » Wed May 16, 2012 1:27 pm

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...

Postby dcbasso » Wed May 16, 2012 7:06 pm

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?
dcbasso
 
Posts: 24
Joined: Thu May 10, 2012 6:31 pm

Re: Custom Launch Conditions...

Postby mihai.petcu » Thu May 17, 2012 8:17 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests