Macy
Posts: 18
Joined: Sun Nov 25, 2007 2:02 am

Conditional installation of a merge module?

I have several merge modules that serve similar purposes. Which module(s) should be installed is dependent upon registry settings that I find. I have reviewed the "Install Level" comments for a feature, and recognize that I can associate a merge module with a feature. But the "Install Level" >= option doesn't seem to work for selecting which modules should be installed and which should be skipped. If I install module 1, I would not want to install module 2, and vice versa.

Is there another way of applying a conditional to the installation of a merge module, or applying the conditional within the merge module?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditional installation of a merge module?

Hi,

A solution is to create a different feature for each merge module (the features can be empty). To find the registry entry you can try using a search. The property of this search can then be used to set conditional install levels for the features of the merge modules.

For example, if the search is named MERGE_MODULE and the possible values are "1" and "2", the feature of the first merge module can use these conditional install levels:

Code: Select all

MERGE_MODULE = "1"       4
MERGE_MODULE <> "1"      0
and the feature of the second merge module can use:

Code: Select all

MERGE_MODULE = "2"       4
MERGE_MODULE <> "2"      0
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”