title: Configuration to Automatically Install .NET 4 Framework in VS 2010 Setup Project
body: <p><a href="https://stackoverflow.com/questions/6090913/make-an-installation-program-for-c-sharp-applications-and-include-net-framework">I know how to include the .NET Framework 4 as a dependency to my installer Setup Project</a> in Visual Studio 2010. However, is there a configuration to set to make the installer check if the dependency is available, and then install .NET 4 on the machine when it isn't?</p>
  
  <p>At the moment all it does is include the .NET Framework 4 installer in a separate folder in the "Release" output folder.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <ol>
  <li>I do have the .NET Framework 4 set as a launch condition.</li>
  <li>I do have the .NET Framework 4 set as a precondition.</li>
  <li>One thing I notice, in the launch conditions window, I cannot delete the current .NET Framework launch condition, and the option "Add .NET Framework Launch Condition" is greyed out.</li>
  </ol>