简体   繁体   English

使用Visual Studio 2010 MSI安装和更新C#项目

[英]Installation with Visual Studio 2010 MSI and updates to c# projects

Every time a new version of the project is built, the installer project in the solution gets updated as well. 每次构建新版本的项目时,解决方案中的安装程序项目也会被更新。 When I take that new MSI created, and run it on a machine which has an earlier version of it, will it automatically update the older one? 当我创建新的MSI并将其运行在具有较早版本的计算机上时,它将自动更新较旧的MSI吗?

You can control this in the setup project's properties; 您可以在安装项目的属性中进行控制。 if you do not change product ID and package ID (those are GUIDs for what I remember) and at every build you update the version number in the setup project and you have also set the property to execute the update, then yes , you will get all running smooth as you assumed in your question. 如果您不更改产品ID和程序包ID(我记得的都是GUID),并且在每次构建时都更新了安装项目中的版本号,并且还设置了执行更新的属性, 那么您将获得一切都按照您在问题中所假设的顺利进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM