msi 安装程序不会提示用户升级
我有一个简单的 msi 安装程序 setup.exe (通过 VS2010 创建)。在第一次安装中一切正常,问题出在第二次安装中: 1.msi设置为: a.RemovePreviousVersions 设置为 TRUE。 2.我升级了安装版本(第二次安装)号,然后按确定 当我询问是否要升级产品代码时。
此时我重新编译了msi并双击setup.exe。 问题: 我希望安装程序会检测到已经安装了以前的版本 并询问我是否要删除\升级它。 发生的情况是,安装程序会自动将已安装的产品升级到新版本,而不询问任何内容...
有什么方法可以配置 msi 项目,以便它提示“升级\删除”屏幕???
非常感谢..
I have a simple msi installer setup.exe (created via VS2010).In the first installation everything is OK,The problem is in the second installation :
1.The msi settings are :
a.RemovePreviousVersions is set to TRUE.
2.I upgraded the setup version(for the second installation) number and then pressed OK
when i asked if i want to upgrade the product code.
At this point i recompiled the msi and double clicked on setup.exe.
The problem:
I expect that the installer will detect that there is already previous version installed
and ask me if i want to remove\upgrade it.
what happens is that the installer automatically upgrades the installed product to the new version without asking anything...
Is there any way to configure the msi project in order for it to prompt the "Upgrade\Remove" screen ????
Many thanks..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有使用过 VS 安装程序,但它有严重限制。从技术上讲,您的升级包必须具有
您还需要按正确的顺序将 FindRelatedProducts 和 RemoveExistingProducts 添加到 InstallE 表中。您可以在其上添加一些 MSI 图形用户界面,但这意味着您必须使用 Orca 编辑器手动编辑 msi。更简单的方法可能是使用 Wix 工具包,您可以更自由地使用。
您的问题已经得到解答 那里。
I have not used the VS Installer but it is severly limited. Technically your upgrade package must have
You need also add the FindRelatedProducts and RemoveExistingProducts into the InstallE table in proper order. You can add some MSI guis on top of it but this would mean that you will have to edit the msi by hand with the Orca Editor. A simpler approach might be to use the Wix toolkit where you have more freedom.
The question you have has already been answered there.
我发现这篇文章非常有帮助。尤其:
I found this article very helpful. In particular: