PDA

View Full Version : Optional Subfeature?



rpreston
09-01-2005, 04:58 PM
I've added a subfeature to a feature and expected that the user could choose not to install the subfeature by unchecking it. But, when the user unchecks it, the parent is also unchecked. So far I haven't found anything in the documentation that explains this. Is this an InstallShield bug?

Thanks,
Richard

MichaelU
09-06-2005, 11:57 AM
Is this an InstallScript MSI? If so you may want to try creating an invisible subfeature, as a sibling to your optional feature. I think the behavior is the "right" behavior for a different scenario, and this is the way to quietly tell it to use the scenario you want.

wjoconnor
09-06-2005, 12:34 PM
If I understand correctly, you have a feature which has components, and a subfeature with its own components. Have you tried taking the components in the feature and moving them to their own subfeature? So, your feature set would look like this:

Feature -- (No Components in this)
-- Subfeature 1 (Components and marked Required)
-- Subfeature 2 (Components and not marked Required)

This way, you'd always have one subfeature that's going to be marked.

rpreston
10-06-2005, 10:28 AM
Yeah, this makes sense to me now. I used the invisible dummy feature to solve this but I realized that I could have moved the components into another subfeature as wjoconnor suggested.

Thanks for your help!