shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Problem in selecting the Build - "Launch conditions"

I have two builds
1) Build1: in which I have checked "Launch condition" -> Software -> "Java runtime environment"-> JRE 1.6
2) Build2

Now, in build2 if I select the "Launch condition" -> Software -> "Java runtime environment"-> JRE 1.6, it never gets saved. any idea to fix this??
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Problem in selecting the Build - "Launch conditions"

I have mailed('support@advancedinstaller.com', subject: 'Problem in selecting the Build - "Launch conditions"') you the aip for a sample, in which I have this problem. This mail also contains the exact reproduction steps.
do let me know if you need any help.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem in selecting the Build - "Launch conditions"

Hello,

Unfortunately, this behavior is caused by a recent bug in Advanced Installer. We are aware of it and it will be fixed in the next version of Advanced Installer which will be released soon.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Problem in selecting the Build - "Launch conditions"

Thanks Daniel. I will wait for the fix.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem in selecting the Build - "Launch conditions"

Hello,

Until then, as a workaround, you can proceed like this:
- Go to "Launch Conditions -> Custom" tab and add a custom launch condition like this:
  • Condition: AI_JREVERFOUND = 1
    Description: [ProductName] cannot be installed on systems with JRE version lower than 1.6
    Builds: <All Builds>
- Go to "Table Editor" page and in the "CustomAction" table add the following new row:
  • Action: AI_DetectJRE
    Type: 1
    Source: aicustact.dll
    Target: RequiredJreExists
    Extended Type:
- In the "InstallExecuteSequence" table add the following row:
  • Action: AI_DetectJRE
    Condition: 1
    Sequence: 399
- In the "InstallUISequence" table add the following row:
  • Action: AI_DetectJRE
    Condition: 1
    Sequence: 399
- Build and run your project.

Please keep in mind that our "Table Editor" feature is available only in an "Enterprise" or higher project type.

Also, I've attached a sample project, created with version 9.8 of Advanced Installer, which implements this workaround.
sample.zip
(2.61 KiB) Downloaded 269 times
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Problem in selecting the Build - "Launch conditions"

Thanks, its working fine.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem in selecting the Build - "Launch conditions"

You're welcome. Glad to help.

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

Return to “Building Installers”