如何为MSI提供卸载选项或设置为应用程序创建的文件 [英] How to have an uninstall option for an MSI or set up file which was created for an application

查看:75
本文介绍了如何为MSI提供卸载选项或设置为应用程序创建的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为自己创建的应用程序创建了一个设置.我需要的是在开始菜单中显示程序的位置以及在安装应用程序的文件夹中具有卸载选项.

I created a setup for the application i created . What i need is to have an uninstall option in the start Menu where the programs are displayed and also in the folder where the application is installed.

推荐答案

您所拥有的"所需要的是其中包含以下内容的uninstall.bat文件:

What you''ll need is an uninstall.bat file with the following in it:

@echo off
msiexec /x {FC5C0E0A-DAEA-4B54-9421-AB0E3F26C6AD}



该GUID是要卸载的应用程序的ProductCode. (不只是使用上面显示的那个...只是一个示例)

只需将.bat文件添加到安装项目中,然后在安装过程中将其放置在所需位置即可.



where that GUID would be the ProductCode of the app to uninstall. (Don''t just use the one shown above...it''s just an example)

Just add the .bat file to your setup project and have it placed wherever you want during install.


这篇关于如何为MSI提供卸载选项或设置为应用程序创建的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆