I'm trying to build an installer using WiX 3.0, and I'm not sure about one thing. I would like to use the FeaturesDlg dialog so that users can select objects to install, but I need to be able to conditionally exclude some functions from the list based on some previously entered input, preferably from a managed user action.
I see that if I set the Display attribute from Feature to hidden in the .wxs file, that it does what I want, but I cannot determine how to change this attribute at runtime.
Any pointers would be great.
Edit
I tried using SQL to update the session database, but although I can really remove this function using DELETE FROM Feature WHERE Feature = 'featureId' , if I try to use UPDATE Feature SET Display=0 WHERE Feature='featureId' , I get UPDATE FAILED error. If I try to set the Display value to something other than what is already installed, I get this error.
Removing the ALMOST function is good enough, but I will need to go back and add the function again if the user comes back and changes some input.
source share