익명 11:32

How to create mutually exclusive features and change the installation condition

How to create mutually exclusive features and change the installation condition

I have some set of features in our product msi. Of those, two should be mutually exclusive. i.e., if one selected in the feature screen, automatically, other should be unselected. So, I created one more dialog “custom setup 1” as a clone of “custom setup” and swapping between these two for refreshing the values. And, when the feature A is selected, I am using the Remove event to un-select Feature B.

Dialog Event Behaviour sections

The dialog is working as expected in UI.

feature selection page

But it raised another problem. We have some custom actions, which should run anytime other than Uninstallation, i.e., install,repair,etc. So, I kept the condition as "NOT REMOVE".When we unselect the features using the REMOVE. Then these custom actions are being skipped now instead of running, as REMOVE property will have some values even during the installation.

Custom action condition

Log : MSI (s) (EC:08) [16:42:01:683]: Skipping action: New_InstallService (condition is false)

Can you suggest an alternative for this?



Top Answer/Comment:

Instead of NOT REMOVE, I am keeping NOT (REMOVE~="ALL")

상단 광고의 [X] 버튼을 누르면 내용이 보입니다