How to create uninstaller in visual studio setup project?

心不动则不痛 提交于 2021-02-19 04:01:57

问题


I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that??

I am using Visual Studio 2005, Or is there any other software which creates complete setups with uninstaller.


回答1:


I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that??

Kazar's answer is correct. The Visual Studio setup creates a .msi file that describes the installation in a database table. .msi files are consumed by the Windows Installer engine msiexec.exe (much like .docx consumed by Word). If the application is already installed, then the unistall/modify/repair options are presented.

I am using Visual Studio 2005, Or is there any other software which creates complete setups with uninstaller.

There are free and commercial products available. There are two general types of installations for Windows: Windows Installer (.msi) files and script-based installers.




回答2:


The msi file generated by visual studio setup projects is already both an installer and an uninstaller - run the msi setup file to install it, and then right-click on it to see the uninstall option.




回答3:


Your installed program will be shown in Control Panel > Add/Remove Programs. You will be able to just hit the "Remove" button there to uninstall your app.

MSI that VS has generated for you is a standard Microsoft installer package, that you can use to install/uninstall software. You can also run admin/silent installations etc, depending on custom command line parameters if you want.




回答4:


Quickest and easy solution can be found here:

http://tech.chitgoks.com/2009/02/06/visual-studio-create-an-uninstaller-shortcut-in-your-installer-wizard/




回答5:


if you know where the files were placed and what registry keys were set, you can delete and fix the registry,create an uninstaller program and bundle it with the program in question

the best way would to be to have a generic uninstaller program that takes config files



来源:https://stackoverflow.com/questions/1218397/how-to-create-uninstaller-in-visual-studio-setup-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!