title: How to conditionally exclude features from "FeaturesDlg" in WiX 3.0 from a managed Custom Action (DTF)
body: <p>I am trying to put together an installer using WiX 3.0 and I'm unsure about one thing. I would like to use the <code>FeaturesDlg</code> dialog to allow the users to select features to install, but I need to be able to conditionally exclude some features from the list based on some input previously received, preferably from a managed Custom Action.</p>
  
  <p>I see that if I set the <code>Display</code> attribute of a <code>Feature</code> to <code>hidden</code> in the .wxs file that it does what I want, but I can't figure out a way to change that attribute at runtime.</p>
  
  <p>Any pointers would be great.</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>I tried using SQL to update the session Database, but while I can actually delete the feature using <code>DELETE FROM Feature WHERE Feature = 'featureId'</code>, if I try to use <code>UPDATE Feature SET Display=0 WHERE Feature='featureId'</code>, I get an <code>UPDATE FAILED</code> error. If I try to set the <code>Display</code> value to anything other than what it's already set at I get that error.</p>
  
  <p>Deleting the feature is ALMOST good enough, but I would need to be able to go back and re-add the feature if the user goes Back and changes some input data.</p>