---
title: "添加卸载程序（转贴）"
author: "大师哥"
date: "2007-07-27T21:39:13Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2007-07-27T21:39:13Z"
id: 106204
url: "https://geyaping.iteye.com/blog/106204"
---

VC#打包部署全攻略之添加卸载程序

一、在系统文件的system32文件夹下找到msiexec.exe。(c:\\windows\\system32\\msiexec.exe)在打包项目中应用程序文件夹中添加文件msiexec.exe。

二、创建msiexec的快捷方式，改此快捷方式的Argmuments属性为“/x {产品ID}”，说明：产品ID的值为打包项目(比如Setup1) 的ProductCode属性值，如: /x {5C766393-B269-4F7B-8E8C-BA336AFB71E6}.。

三、将快捷方式拖到用户程序菜单中即可。

http://www.cnblogs.com/tuyile006/archive/2006/11/15/560942.html