Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 697
patel vinay Avatar asked Jun 11 '19 10:06

patel vinay


People also ask

How do I create an executable file in Visual Studio?

To build your program and create teh executable file choose Build My Project.exe from the Build menu - "My Project" represents teh name you chose for your project and the extension ".exe" is used to designate that the file being created will be an executable file.


1 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...).
like image 188
Mikev Avatar answered Sep 30 '22 23:09

Mikev