MarcinK71
Posts: 16
Joined: Mon Aug 05, 2019 4:57 pm

enabling/disabling installer feature

Hi

How can I disable one feature if other one is selected for installation. I want to prevent installing not needed feature.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: enabling/disabling installer feature

Hello,

In order to achieve this, you need to create a custom feature selection dialog. For more details, you can refer to the article below:

How to show a custom feature selection dialog


After you follow the steps from the article and create the CheckBox controls, you need to add the control conditions for every checkbox.

Let's say you add 3 languages "en", "fr", "german" and you named the checkbox properties: CHECKBOX1, CHECKBOX2, CHECKBOX3.

Now you need to click on the first checkbox and add these control conditions:

CHECK2 OR CHECK3 with the Action: Disable means that this checkbox will be disabled if any of the "Fr" or "german" is selected.

(CHECK3="") is the condition if the checkbox is unselected.

You need to add these conditions for every checkbox that you want to be disabled/enabled.

Now from the Organization page you can condition the feature installation based on the user selection on the CheckBox.

If you cannot get this to work, please send us the .AIP (setup project) file by email to support at advancedinstaller dot com and more details about your expected result.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”