patel vinay
patel vinay

Reputation: 85

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

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.

Upvotes: 7

Views: 33561

Answers (3)

maneesh
maneesh

Reputation: 1147

On visual Studio 2019,

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

Upvotes: 2

ishakkulekci
ishakkulekci

Reputation: 871

You must be install "Microsoft Visual Studio Installer Projects" extension from visual studio extensions menu. This process need after Visual Studio 2017.

Extension link: https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects

Upvotes: 7

Mikev
Mikev

Reputation: 2082

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...).

Upvotes: 13

Related Questions