Tool used : WIX.
Technology :Windows Installer
I have an MSI with 10 features, all 10 features are shown in the UI, User can select/deselect the desired features. By default all 10 features are marked as selected (in my features.wxs file). I have a custom action that copies/deployed few files and performs necessary actions based on what features are selected. for example: if feature A is selected the respective folder for A is copied to user PC and certain actions are performed.
All of the above works fine if I schedule my custom action as DoAction on the click of next button in feature selection dialog, but if I schedule if elsewhere in UI or execute sequence, the feature evaluation is not happening (always all 10 features are selected i.e. default values are retained).
I have tried the below workarounds and none of it works:
- I have scheduled the custom Action right after CostFinalize.
- I have tried to CostFinalize inside my custom action using MSIdoactionA().
Kindly suggest what changes needs to be adapted.