当应用程序处于升级模式时显示附加对话框
我创建了一个运行良好的安装文件。
现在,每当我重建应用程序而不更改任何内容,但更改了包代码时,当我要安装此版本时,就会出现一个对话框“升级对话框”,要求我升级应用程序。
现在在这种情况下我想显示我创建的附加对话框。
我正在使用 Insatllshield 2012 BASIC MSI 项目类型。
I created a setup file which is working awesome.
Now whenever I rebuild an application without changing anything but Package Code is changed and then while I am going to install this version then a dialog will come "Upgrade Dialog" which ask me for upgrade an application.
Now in this situation I want to display an additional dialog created by me.
I am using the Insatllshield 2012 BASIC MSI project type.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我解决了这个问题。
Installshield 中存在两个属性,名为“IS_MINOR_UPGRADE” 和“IS_MAJOR_UPGRADE”。
当当时有次要升级时,IS_MINOR_UPGRADE 将设置为 1。主要升级也是如此。
因此,使用这些属性,我可以识别升级模式。
I solved this problem.
There are two properties exist in Installshield named "IS_MINOR_UPGRADE" and "IS_MAJOR_UPGRADE".
When there is a minor upgrade at that time IS_MINOR_UPGRADE will set to 1. And same for Major upgrade.
So using these properties, I can recognize the Upgrade mode.
每当您更改软件包代码而不是产品代码时,如果您不更改产品版本,则您正在谈论的是次要升级或可能是小更新。无论哪种方式,创建您所要求的自定义消息的唯一方法是编写您自己的 setup.exe / update.exe 引导程序来检测更新方案并显示您的确认 UI。
MSI 或 IS 中没有内置任何内容可以让您轻松更改此设置。
Any time you change the package code but not the product code you are talking about a Minor Upgrade or possibly a Small Update if you don't change the ProductVersion. Either way, the only way to create a custom message like you ask is to write your own setup.exe / update.exe bootstrapper to detect the update scenario and display your confirmation UI.
There's nothing built into MSI or IS that allows you to easily change this.