Search code examples
c#.netvisual-studiodeployment-project

.NET Framework - Installing the application


I want to make an application (windows application) using C# and .NET Framework 3.5.

I want to make the install the application. I want the installation to determine - whether the user has the framework in the system. If the user does not have a framework - I want to install it.

How to create an installation of application with NET Framework 3.5?


Solution

  • If you use something like ClickOnce to install your application this will happen automatically. When you set it up it determines which version of .NET is required for your application. It doesn't include the required version in the installer - so your installer says the same size regardless - but puts in code that will install the correct version from Microsoft as required.