Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an installer and uninstaller for a Windows Forms application

I created an installer for my Windows Forms application and I added the project output to programs menu. But now what I want is 'I should have a folder in programs menu in that it should contain both install and uninstall options'.

Please help me. Thanks in advance.

like image 262
user626660 Avatar asked May 23 '11 07:05

user626660


People also ask

How do I create an installer for Windows form application?

If not then Choose View -> Editor -> File System. Now, you need to add output of your Windows Form Application to build the setup. Right-click on the Application Folder and select Add -> Project Output. Leave the default selection of Primary Output in the "Add Project Output Group" dialog box and click the OK button.

How do I create a Visual Studio installer project?

From Visual Studio, choose Extensions > Manage Extensions, and search for "Visual Studio Installer Projects". Or, download the extension directly from the Marketplace. From the Start window, choose Create a new project, and then type "setup" in the search box. Choose a Setup project, and follow instructions.


2 Answers

The easiest way is to create a Setup and Deployment project in Visual Studio.

like image 166
Richard Schneider Avatar answered Sep 19 '22 13:09

Richard Schneider


I have to agree with Sir Richard's answer, but I wanted to add the instructions on how add an uninstaller using the Setup and Deployment project found in Visual Studio.

Here's a useful link you can work on: How to add a Uninstall option in Visual Studio Setup project without writing code

like image 36
abramlimpin Avatar answered Sep 20 '22 13:09

abramlimpin