How to create setup.exe file for window form application in visual studio 2019?

Viewed 26002

enter image description hereenter image description hereI created one window form application in visual studio 2019. Now I can't find any solution regarding how to create installer for that window form application.

3 Answers

Using Visual Studio Installer (look @Hans Passant comment for the download).

I will make a simple tutorial:

1 - Right click on Solution of your project > Add > New Project > Write on SearchBar "Setup" > Setup Project > Next > Create;

enter image description here

2 - Application Folder > Add > Project Output > Primary Output;

3 - User's Desktop > Create New Shortcut to Primary Output;

4 - Rename your Shortcut for the name of your App;

5 - User's Program Menu > Create New Shortcut to Primary Output;

6 - Rename your Shortcut for the name of your App;

7 - Application Folder > Add all the files needed for the operation of the application.

Good points:

  • Don't forget to put the icons on your application folder.
  • When you edit your application you have to build your setup or the setup will be with the previous "version".
  • Don't forget to edit the properties of setup (Who created the application, version...).

On visual Studio 2019,

Go to Extensions > Manage Extensions > Online > Search, find, download, and install "Microsoft Visual Studio Installer Projects" extension.

Related