Yes, it should be possible, if you use the Condition element in the Feature element, you can control the level of installation of the function from the condition.
<Feature Id="MyDependentFeature"> <Condition Level="1">(NOT INSTALLED AND &MyMasterFeature=3) OR (INSTALLED AND !MyMasterFeature=3)</Condition> </Feature> <Feature Id="MyMasterFeature"> </Feature>
A few things to explain here:
Condition Level="1" tells Wix to set the parent installation level of the installation to 1 (Install) ( Information )(NOT INSTALLED AND &MyMasterFeature=3) If the product is not already installed and the requested action MyMasterFeature is installed(INSTALLED AND !MyMasterFeature=3) If the product is already installed and the installation status of MyMasterFeature is set. ( Information )
source share