Feature depend on another feature - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Feature depend on another feature

Hi

I have problem make one feature depend on another. It is similar problem which was described here. http://www.advancedinstaller.com/forums ... php?t=1274 but I have to use selection tree.

I would try describe my scenario in simplified way.

I have two features and their components can not be installed together. There can be installed components only from first or only from second feature. I know radio buttons would solve this problem but I have to use selection tree because there are lot of other features. I know that I can not use conditions in one feature which depends on another. But what about components? I tried add conditions in components which depends on feature action or state but it also not working.

I tries something like this. One feature is default and second has this condition in its componets (&Feature1 = 2) /* It should mean that Feature1 will not be installed */ So components from second feature will be installed only if feature one is disabled.

It is possible do something like this or I have to use some custom action to change feature action?

thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Feature depend on another feature

Hello,

We tried to find a solution for this, however Windows Installer simply does not support this behavior.
What is the reason behind your decision to make the two features mutually exclusive? Perhaps we can find a workaround.

In the meantime, the only apparent solution is to use radio buttons on a custom dialog to select which feature to install.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Re: Feature depend on another feature

Hi
Thanks for reply.

So our problem is that we have two products and now we want to merge it to one and user should have opportunity choose features from both product. But real problem is that one product use one set of drivers and second use another set and this sets of drivers are mutually exclusive. So I need find way how to do this. And it is more complicated because this features are not on same level. One is sub feature of second if you look on it from user point of view.

One feature is default and it should be there always but if user decide to have extended version (Another feature). Drivers from this first default feature have to be replaced with drivers from extended one.

I am thinking if shared components will help me. But I haven't work with it yet. Must I use merge modules or is there way to make components shared only in organization? Because I didn't find this choice.

Or maybe some workaround about features and custom action would help me. For example how to get or set feature state (value) from CA in DLL.

Thanks

Return to “Common Problems”