如何通过msi升级
我想通过 msi 安装程序升级我的产品。 两个 msi 的升级代码保持不变,因为它们是相同的产品系列。即使我更改 msi 的版本/产品代码进行更新,它也只会告诉我该产品已安装或要求我修复它。它永远不会提供替换当前安装的更新选项。
我正在使用 Visual Studio 2008 Pro 生成 msi 安装程序
I want to upgrade my product via msi setup.
The Upgrade Code of both msi remains the same because it's the same product family. Even if I change Version/Product Code of the msi for updating it just tells me the product is already installed or asks me to repair it. it doesn't ever provide an update option that replaces the current installation.
I'm using Visual Studio 2008 Pro to generate the msi setup
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您更改安装项目中的
Version
属性时,Visual Studio 应提示您同时更改ProductCode
。你必须这样做。然后,您还必须将RemovePreviousVersion
属性设置为 true。确保UpgradeCode
保持不变。这可能是最简单的方法,并且通过阅读您的问题,了解您正在寻找的内容。请注意,这更多的是卸载,然后重新安装,而不是“升级”本身。
When you change the
Version
property in your Setup project, Visual Studio should prompt you to also change theProductCode
. You must do this. Then, you must also set theRemovePreviousVersion
property to true. Make sure theUpgradeCode
stays the same.This is probably the easiest way and, from reading your question, what you are looking for. Note that this is more of an uninstall, then reinstall, than an "upgrade" per se.