milanche
Posts: 14
Joined: Mon Sep 10, 2012 5:41 pm

Install prerequisite based on checkbox

Hello

i have one problem.
i have custom dialog with checkbox, where user can check if he want to install one more optional feature. It is .exe silent installer with parameters, so i added it as prerequisite.
In Organization tab, installation behavior of this feature is set to: Install based on condition. And condition is: CHECKBOX_1 = "yes"
Also in custom dialog, CHECKBOX_1 value and default value are "yes", because it should be checked by default.

In this situation AI will always install this prerequisite, even if checkbox is not checked.
I also tried with condition: CHECKBOX_1, but same thing.

Where i'm wrong?

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install prerequisite based on checkbox

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why you are encountering this behavior. Can you please attach a sample reproducing the behavior?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
milanche
Posts: 14
Joined: Mon Sep 10, 2012 5:41 pm

Re: Install prerequisite based on checkbox

Hello

i tried a couple different ways, and i can say that problem is in Organization tab, Feature installation behavior: Install on condition.
Seems that it takes default value of the control. Not current value.

I have a checkbox like this:
http://www.dodaj.rs/f/27/5f/17GLvg4E/example2.jpg

and feature properties:
http://www.dodaj.rs/f/F/Yf/2dZbRjjQ/example1.png

it will always install this feature, even if checkbox is unchecked.
Or if i change default value it will never install it.

Same thing if condition is just: CHECKBOX_1_PROP

I also tried to create Environment variable and then set it from checkbox published events, but same thing.
Feature condition field take default value of the variable.

Any thoughts?

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

Re: Install prerequisite based on checkbox

Hello,

In order to achieve what you want you can take a look on our "Show a custom feature selection dialog" article. Also, please keep in mind that this article can be implemented from version 9.3 or greater of Advanced Installer.

If you don't have at least version 9.3 of Advanced Installer, then you should take a look on "Show a custom feature selection dialog" article of the version of your Advanced Installer help. Open Advanced Installer, press F1 and in the Advanced Installer Help go to:
  • Tutorials, How To's, Q&A -> How To's -> User Interface -> Show a custom feature selection dialog
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
milanche
Posts: 14
Joined: Mon Sep 10, 2012 5:41 pm

Re: Install prerequisite based on checkbox

Hello

after updating AI to version 9.5 and setting Checkbox value to: "install", everything worked.

Thank you Daniel

All the best.
Aiad
Posts: 2
Joined: Sun Jul 13, 2014 1:09 pm

Re: Install prerequisite based on checkbox

Hello, i have exactly the samme issue evenif am using the latest version 11.3, i build the project and it has worked fine, and then build another project with exactly the samme steps then it Works only the first time and then tried to add more software to prerequisite so nothing is working but just empty package, i notice aktuelle becuase the first project has worked fine so each time i add more software then it Works fine, but not the second project, looks like there is an issue in the software calling the software from the prerequisite.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install prerequisite based on checkbox

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why this happens. Can you please send us the problematic .aip (project file) to support at advancedinstaller dot com alongside a more detailed description of the behavior you are encountering so we can investigate this?

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

Return to “Common Problems”