Merge module for 2 features - 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!

mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Merge module for 2 features

I need to install merge module if any of 2 features is selected by the user.
But I can set only one parent feature for merge module and I can't add the same merge module for the second time, setting another parent feature. Features cannot be shared in feature tree.

How can I do what I need?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Merge module for 2 features

Hi,

Unfortunately this is not supported by Windows Installer or by Advanced Installer. However, you can try using a custom action to set the install action of a custom feature based on your two features. For example, if you have Feature1 and Feature2 you can create a third feature called MergeModule. This feature should not be installed by default and its install action should be set by the custom action.

Since the custom action should run after the user selects the features, you can schedule it under the "InstallUISequence" -> "UIStarting" standard action. Please note that you can show this standard action by using the "Show Standard Action" button on the toolbar of the Custom Actions page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Merge module for 2 features

Thanks,

That's what I did, but I put my custom action under InstallExecuteSequence\CostFinalize.

I used Session.FeatureRequestState and Session.FeatureCurrentState properties of the features, that require MSM and set the action for the dummy feature via Session.FeatureRequestState.

It seems to work.

Thanks,
Mikhail

Return to “Common Problems”