How To Create A Installer In Visual Studio 2017
- Updated date Jun 09, 2020
- 225.3k
- 4
In this article you will learn how to create a setup file for desktop application to install software on the client machine using Visual Studio 2010.
Software used:
- Open an existing Windows form project solution to create a setup file.
- Right-click on solution and in the context menu click Add, then New Project. After that you can see a new project window, in that right side you can select Other Project Types in installed Templates, then select as shown below.
- Now you can see one project in the same solution as setup1. You can see the properties for this project and can change these properties as you wish like Author, Manufacture, etc. as in the following figure:
- Now the real part begins, here I am going to show you how you can import your project files to setup file, for that right-click on this setup1 project and in the context menu select Add, then click Project Output. After that, you can see a pop-up, from this pop up select required items, mainly Primary output and Localized resources (marked in a red square which I have selected).
- Now let's see how to add extra files and folders in these three right side folders, Firstly, let's see in the Application Folder as shown below. Right-click on this folder and in the context menu select Add, then click File (What do you want)
- Now let's see how you can manage prerequisites, which is required. Run your application like .NET framework 3.0 or 4.0, VS report viewer, and other prerequisites, for this right-click on setup1 in Solution Explorer and select Properties. After that you can see one pop up there you can select the prerequisites button then select what all prerequisites needed for your application to run Select any of the 3 radio buttons (select 1st one Default).
- Now you can design your setup.exe file as in the following figure:
- Now the time to build setup file, for this right-click on Setup1 in Solution Explorer and select Build, That's it.
Note:
How To Create A Installer In Visual Studio 2017
Source: https://www.c-sharpcorner.com/article/creating-setup-file-for-desktop-application-using-visual-stu/
Posted by: lopezdresse.blogspot.com
0 Response to "How To Create A Installer In Visual Studio 2017"
Post a Comment