我想在安装新版本之前不麻烦用户卸载我的应用程序已经安装的版本。
下面是我设置的部署项目属性:
AddRemovePrograms Icon(Icon)
Author Justin Tanner
Description
DetectNewerInstalledVersion False
InstallAllUsers True
Keywords
Localization English (United States)
Manufacturer Company Name
ManufacturerUrl
PostBuildEvent
PreBuildEvent
ProductCode {3F401BEF-4A95-48AE-A79F-FBB60E90E26A}
ProductName Utility App
RemovePreviousVersions True
RunPostBuildEvent On successful build
SearchPath
Subject
SupportPhone
SupportUrl
TargetPlatform x86
Title Utility App
UpgradeCode {B2DC1E38-5605-4CC7-A815-2E1F9D7EDE41}
Version 1.0发布于 2010-01-15 00:07:23
更改安装程序安装项目的Version属性。
进行此更改后,visual studio将显示It is recommended that the ProductCode be changed if you change the version. Do you want to do this? Choose Yes。
在版本和ProductCode更新后创建的安装程序将在版本更新之前自动“升级”先前安装的版本。
不幸的是,我不知道如何将安装项目配置为在每次构建时更新版本和产品代码,以避免在每次部署之间进行这样的更改。
发布于 2009-07-23 05:09:50
如果您只想运行卸载操作,那么选择您的安装程序项目并转到属性,然后设置RemovePreviousVersion = True...
https://stackoverflow.com/questions/1169696
复制相似问题