Hello,
You are always welcome, I am glad the information was helpful for you.
From what I understand, you now have two features, each containing the components assigned to your files, am I right?
Would you mind supplying me with a sample or instructions to set it that if one "package" is selected to be installed, that any and all other packages cannot be selected for install?
I guess that here you want to let the user choose which one of the features he wants to install. If so, here is how I would proceed:
Based on the example give in my first thread, let's consider:
1. In
"Organization" page, we will have two features (each corresponding to our text files), defined as such:

- Features.png (16.17 KiB) Viewed 10626 times
- first of all, I would create a new dialog in which the user can select which feature he wants installed (either the feature containing the first text file or the one containing the second one). To do so, you can go to
"Dialogs" page, click on
"WelcomeDlg" and then press the
"New Dialog" button from the ribbon.
-- on the newly created dialog, you can add two CheckBox controls (by pressing the
"Controls Toolbox" button from the toolbar), as such:

- FirstFeatureCheckbox.png (189.61 KiB) Viewed 10626 times

- SecondFeatureCheckbox.png (172.97 KiB) Viewed 10626 times
- now, what we can do is to condition our features to be installed based on the state of the checkbox control. For instance, if the first checkbox is checked, we install the first feature, if the second one is checked, we install the second feature. Here is how this can be achieved:

- InstallFirstFeature.png (120.41 KiB) Viewed 10626 times

- InstallSecondFeature.png (122.79 KiB) Viewed 10626 times
A quick explanation: Pretty much all controls have a property assigned to them. The checkbox control makes no exception to this rule. The property that is assigned stores the state of the checkbox. For instance, by default (it can be changed), the property that is assigned to a checkbox control has the following values:
1. CHECKBOX_PROPERTY = "CheckBox" ---> if the checkbox is checked
2. CHECKBOX_PROPERTY = "" (empty string) ---> if the checkbox is unchecked
Based on the above explanation, hopefully the condition from the
"Installation Behavior" section makes sense.
Now, in addition to that, you mentioned that you wanted to now allow the installation of a feature if the other one is selected. This can be achieved through a control condition applied to the checkbox controls. Here is how this can be achieved:

- FirstFeatureCC.png (183.6 KiB) Viewed 10626 times

- SecondFeatureCC.png (194.35 KiB) Viewed 10626 times
As you can see, here we control the state of one feature based on the other. For instance,
if the first checkbox is checked ==> the first feature will be installed ==> the second checkbox will be disabled ==> the second feature will not be installed. The same goes the other way around.
Additionally, for your reference, please find attached a sample project which you can build and see how it behaves.
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging