Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

Install files based on Selected Feature

Hi Support,

We have multiple features in a single installer. We have to install the files & registry keys based on selected feature. In each feature there are 3 subfeatures and for each main feature we have to display their corresponding wizards.

Feature 1

Subfeature 1: App
Subfeature 2: Web
Subfeature 3: DB

Feature 2

Subfeature 1: App
Subfeature 2: Web
Subfeature 3: DB

If Feature1 is selected for installation, it displays a wizard which has 3 checkboxes. Based on selected checkbox, I need to display wizards and their respective files should be installed. i.e., If App is selected. then app related dialogs will be displayed and app files should be installed. So, in Organization page I set the condition for APP Subfeature that it should be installed only when App checkbox is selected.

The files & registry keys are installed perfectly for Feature1 as per checkbox selection. But the problem is when I select the Feature 2, the feature 2 files& registry keys are not installing. I set the same conditions for both features.

For better understanding I'm attaching project file here. It's an urgent requirement. So, Please help me out of this issue as soon as possible.

Thanks,
Meena
Attachments
Test.zip
(106.46 KiB) Downloaded 347 times
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

Re: Install files based on Selected Feature

Hi Team,

Any Suggestions?

Thanks,
Meena
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Install files based on Selected Feature

Hi Meena,

We are sorry for the late reply. We have been a little crowded here.
We are analyzing your problem right now and we will answer you as soon as we have a solution.

Thank you for your patience and understanding.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Install files based on Selected Feature

Hi Meena,

We managed to localize the problem. Let me give you some details.

The features conditions are evaluated in the CostFinalize action ( a Windows Installer standard action) from the Wizards Dialog Stage. After the above standard action, if any of the properties (used to condition the features) change due to user interaction, they are not re-evaluated. For this, we have created a UpdateFeaturesInstallStates custom action that is automatically included in your package, and reevaluates all features' conditions every time the properties (used in "Conditions" fields) are changed on installation dialogs.

Even though for all other dialogs this action is triggered, for the AgileMobile dialog it is not triggered, though it is included in the .msi (seen with ORCA). Unfortunately, we cannot replicate this behavior but in your project.

A possible workaround is to add in the AgileMobile dialog, on the "Next" button, an event of type "Install one or more features locally" with the argument "Web_2" and condition "WEB_2 = "WEB1". This event will set the "Web_2" feature to be installed when the "WEB_2 = "WEB1" is TRUE.

Since your project is very complex, I would kindly ask you if you can make a sample project in which you can replicate this behavior again and send it to us so that we can investigate more.

Thank you again for your patience.

Do not hesitate if you have more questions.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”