title: Installing .NET Framework and VB.NET Apps together in one installer exe
body: <p>Software written in Visual Basic requires the .NET framework to be installed on the end-user's computer to be able to run. The <a href="/questions/tagged/.net" class="post-tag" title="show questions tagged '.net'" rel="tag">.net</a> is a large software framework that a user will probably not have on their computer. How can I distribute my VB.NET app with a .NET framework so that it can run properly on a user's machine?</p>
  
  <p>When I try to create my <a href="/questions/tagged/clickonce" class="post-tag" title="show questions tagged 'clickonce'" rel="tag">clickonce</a> deployment / installer you would think that it would automatically include a .NET 4.0 setup for the end-user, it does <strong>not</strong>. When I go through Microsoft Documentation like this: <a href="http://msdn.microsoft.com/en-us/library/8st7th1x%28v=vs.80%29.aspx" rel="nofollow">How to: Install Prerequisites with a ClickOnce Application</a> all I get is something I've already tried and does not work. I have tried creating all sorts of installers which install the Microsoft .NET folder onto the end-user's machine, or the actual .NET executable file. None of these seem to work, even in third party installation creators like InnoSetup.</p>
  
  <p>I need everything in one large <code>setup.exe</code> file. I don't care if it is going to take up a lot of space, as long as it is in one file and everything is embedded together (to make it easy for the user).</p>
  
  <p>How do I package the .NET 4.0 framework and make it install with my VB.NET application in <strong>ONE</strong> <code>Setup.exe</code> file? If this isn't possible, where can I find the Actual Files of the .NET 4 Framework?</p>