Make an Installation program for C# applications and include .NET Framework installer into the setup
.net, c#, installation, visual-studio, winforms
Solution
Use Visual Studio Setup project. Setup project can automatically include .NET framework setup in your installation package:
Here is my step-by-step for windows forms application:
Create setup project. You can use Setup Wizard.
Select project type.
Select output.
Hit Finish.
Open setup project properties.
Chose to include .NET framework.
Build setup project
Check output
Note: The Visual Studio Installer projects are no longer pre-packed with Visual Studio. However, in Visual Studio 2013 you can download them by using:
Tools > Extensions and Updates > Online (search) > Visual Studio Installer Projects
Problem
I've finished my C# application, but I have a little problem: When I try to run my application in another PC, I need always to Install .NET Framework 4.0. Is there something to do to make it work without installing the framework from internet? I tried before InnoSetup for a VB6 application, but I'm not sure if it's going to work for .NET 4.0! Any ideas?