Make an Installation Program For C# Applications and Include .Net Framework Installer into the Setup

Make an Installation program for C# applications and include .NET Framework installer into the setup

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:

  1. Create setup project. You can use Setup Wizard.

    Sample Image

  2. Select project type.

    Sample Image

  3. Select output.

    Sample Image

  4. Hit Finish.

  5. Open setup project properties.

    Sample Image

  6. Chose to include .NET framework.

    Sample Image

  7. Build setup project

  8. Check output

    Sample Image


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

install .net framework 4.5 along with project primary setup

Advanced Installer has builtin support for Prerequisites, .NET is in the list of predefined ones. However, you need to create at least a Professional project type.

Once you have that project type you can add .NET as prerequisite and the setup will get the EXE and launch its installation, if it is missing from the target machine.

Sample Image



Related Topics



Leave a reply



Submit