title: Setup Project Minimal Requirement .NET Framework 3.5
body: <p><strong>Overview</strong></p>
  
  <p>I have an Application running under .NET Framework 3.5. As the clients use Windows 7 (default: .NET 3.5) and Windows 8 / 8.1 (default: .NET 4.5). At the moment the .NET Framework (3.5) gets installed if not available on the system.</p>
  
  <p>The application itself is able to run under .NET 4.5, thus I'd like to remove the dependency to .NET Framework 3.5.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>In the Setup Project, I have to define the 'Launch Conditions' where .NET Framework is listed and can't be removed.
  When configured with Version 3.5 it will run on Windows 7 and gives an error on Win 8. When changed to Version 4.5 it will run on Win 8 but not 7. When I change the version to 'Any' it installs on Win 7 but throws an error during installation on Win 8, saying: "Error 1001 InstallUtilLib.dll. unknown error".</p>
  
  <p><strong>Question</strong></p>
  
  <p>How can a setup project check for a version higher than .NET Framework 3.5 instead of 'Any' and if I have to use 'Any' how to get it working under Win 8?</p>
  
  <p><strong>Details</strong></p>
  
  <p>I'm using VS2013 with the 'Visual Studio Installer Projects' Extension v1.0.0</p>
  
  <p>Solution structure:</p>
  
  <ul>
  <li>Custom_Action (NET 3.5, x86)</li>
  <li>MyProject (NET 3.5, x86)</li>
  <li>SetupProject (Property 'TargetPlatform' set to x86)  </li>
  </ul>
  
  <p>The app.config of the Custom_Action and MyProject is set like this:
  <code>&lt;configuration&gt;
      &lt;startup&gt;
          &lt;supportedRuntime version ="v2.0.50727"/&gt;
          &lt;supportedRuntime version ="v4.0"/&gt;
      &lt;/startup&gt;
  &lt;/configuration&gt;</code></p>
  
  <p>When I start the setup on Win 7 everything works.
  When I start the setup on Win 8 I get through the Configuration Dialogs of the Setup. It will halt with the Error "Error 1001 InstallUtilLib.dll. unknown error"</p>