title: Enable feature by default in WIX
body: <p>While extending a WIX-installer that I have to maintain, I ran into the following problem - when shown the tree of features and components, the <a href="http://i.stack.imgur.com/HcKvc.png" rel="nofollow">product feature is not selected by default</a>.</p>
  
  <p>I tried different variations, including adding <code>InstallDefault ='local'</code>, <code>TypicalDefault ='install'</code>, and <code>Absent = 'disallow'</code>, however, the feature is still disabled.</p>
  
  <p>Here is the code that describes the feature:</p>
  
  <pre><code>&lt;Feature    Id="Complete" Level="1"
    Display='expand'
    InstallDefault ='local'
    TypicalDefault ='install'
    Absent = 'disallow'
    Title="$(var.ProductName)"&gt;
    &lt;ComponentGroupRef Id="Required_files"/&gt;
    &lt;?ifdef InstallDriver?&gt;
      &lt;ComponentGroupRef Id='driver_files'/&gt;
    &lt;?endif?&gt;
    &lt;ComponentRef Id="ProgramMenuShortcuts"/&gt;
    &lt;ComponentRef Id="ProductInfo"/&gt;
    &lt;?ifdef RemoveAllRegKeys?&gt;
      &lt;ComponentRef Id="RegRemoveAll"/&gt;
    &lt;?endif?&gt;
    &lt;ComponentGroupRef Id="FBmodule"/&gt;
  &lt;/Feature&gt;
  </code></pre>
  
  <p>Having examined the logs, I see some entries that seem to be related to this (this is happening when I manually set the feature to "install to local hard disk").</p>
  
  <pre><code>MSI (c) (FC:90) [16:43:57:559]: PROPERTY CHANGE: Adding MsiSelectionTreeSelectedFeature property. Its value is 'Complete'.
  MSI (c) (FC:90) [16:43:57:559]: PROPERTY CHANGE: Adding MsiSelectionTreeSelectedAction property. Its value is '2'.
  MSI (c) (FC:90) [16:43:57:559]: PROPERTY CHANGE: Adding MsiSelectionTreeSelectedCost property. Its value is '0'.
  Action 16:43:57: FeaturesDlg. Dialog created
  MSI (c) (FC:90) [16:51:44:645]: Note: 1: 2727 2:  
   .... many repetitions of Note: 1: 2727 2:  
  MSI (c) (FC:90) [16:51:45:146]: Note: 1: 2727 2:  
  MSI (c) (FC:90) [16:51:45:630]: Note: 1: 2205 2:  3: MsiAssembly 
  MSI (c) (FC:90) [16:51:45:630]: Note: 1: 2228 2:  3: MsiAssembly 4:  SELECT `MsiAssembly`.`Attributes`, `MsiAssembly`.`File_Application`, `MsiAssembly`.`File_Manifest`,  `Component`.`KeyPath` FROM `MsiAssembly`, `Component` WHERE  `MsiAssembly`.`Component_` = `Component`.`Component` AND `MsiAssembly`.`Component_` = ? 
  MSI (c) (FC:90) [16:51:45:630]: Note: 1: 2205 2:  3: _RemoveFilePath 
  MSI (c) (FC:90) [16:51:45:639]: Note: 1: 2727 2:  
  MSI (c) (FC:90) [16:51:45:647]: PROPERTY CHANGE: Modifying MsiSelectionTreeSelectedAction property. Its current value is '2'. Its new value: '3'.
  MSI (c) (FC:90) [16:51:45:647]: PROPERTY CHANGE: Modifying MsiSelectionTreeSelectedCost property. Its current value is '0'. Its new value: '7318'.
  </code></pre>
  
  <p>I suspect that this could be related to the fact that there is a custom dialog in the installer - but having looked through the source I could not find anything that would indicate a relationship between the state of the feature and something else in the project.</p>
  
  <p>What are the recommended troubleshooting steps? </p>
  
  <p>Here is the <a href="http://pastebin.com/dxAMAKQy" rel="nofollow">full installation log</a>.</p>