wix 安装程序更新过程和确认对话框 [英] wix installer update process and confirmation dialog

查看:20
本文介绍了wix 安装程序更新过程和确认对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为对我们来说运行良好的更新过程的一部分,我们想添加一个额外的确认对话框,以便最终用户可以接受或拒绝安装这个较新的版本.

As part of the update process which is working well for us, we would like to add an extra confirmation dialog so an end user can accept or decline the installation of this newer version.

  • 您确认要安装这个新版本吗?
    • :我们继续处理
    • :取消安装
    • Do you confirm you want to install this new version?
      • Yes: we continue process
      • No: is cancels installation

      如果你能通过给我完整的说明来帮助我,添加 UPGRADINGPRODUCTCODE.. 和显示弹出窗口的自定义操作的条件,那就太好了.

      If you can help me by giving me full instructions, condition to add UPGRADINGPRODUCTCODE..and custom action displaying a popup it would be great.

      谢谢,

      朱利安

      推荐答案

      完全完整的说明是不可行的,因为您需要创建一个对话框以在检测到升级时插入,并且需要挂钩到 Next/Back 排序.我还要补充一点,大多数人都知道他们正在安装他们已经安装的产品的升级并且不需要额外的提示,所以这就是不常见的原因.

      Completely full instructions are not feasible because you need to create a dialog to insert when an upgrade is detected, and that needs hooking into the Next/Back sequencing. I'll also add that most people know that they are installing an upgrade of a product they have installed and don't need an extra prompt, so that's why this is uncommon.

      通常,您可以使用下一步"和取消"按钮来创建是否要升级"对话框,询问是否应继续升级.在 WIX_UPGRADE_DETECTED 上显示此情况的条件.UPGRADINGPRODUCTCODE 不相关,因为它是在正在升级的旧产品中设置的.

      In general you make the "do you want to upgrade" dialog with Next and Cancel buttons asking whether the upgrade should proceed. Condition showing this on WIX_UPGRADE_DETECTED. UPGRADINGPRODUCTCODE is not relevant because it is set in the older product that is being upgraded.

      WIX_UPGRADE_DETECTED 属性是要升级的产品的产品代码(或列表),因此您可以考虑查询该产品的名称和版本,但这通常在查询需要提升时不起作用(因为 UI 序列没有提升).

      The WIX_UPGRADE_DETECTED property is the product code (or list) of the product(s) being upgraded, so you could think about querying the name and version of that product, but this typically doesn't work when the query requires elevation (because the UI sequence is not elevated).

      这篇关于wix 安装程序更新过程和确认对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆