WiX 烧录升级在最后显示卸载 UI [英] WiX burn Upgrade shows uninstall UI at the end

查看:39
本文介绍了WiX 烧录升级在最后显示卸载 UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 WiX 和 Burn 创建自定义 UI.除了一件事,我几乎完成了.在升级(例如 1.0.0 到 1.1.0)的安装结束时,卸载先前版本并显示其 UI.我的问题是我应该如何处理这个问题,以便用户最终看不到卸载 UI.

I am trying to create a custom UI for WiX and Burn. I'm almost done except one thing. In the end of installation which is upgrading(for exaple 1.0.0 to 1.1.0) uninstall for the previous version starts and the UI of it shows. My question is how should I handle this so the user doesn't see uninstall UI in the end.

推荐答案

在升级基于 Burn 的安装程序时,该过程将升级安装程序中捆绑的每个 MSI,然后它会卸载em> 使用命令行参数 -uninstall -quiet -burn.related.upgrade -burn.embedded(以及一堆其他东西)的先前版本的包.如果您在 .NET 中编写自定义 UI,它将在 WiX BootstrapperApplication 基类中显示自己,并具有以下属性值:

When performing an upgrade of a Burn-based installer, the process will upgrade each of the MSIs bundled inside the installer, then it will uninstall the previous version's bundle using the commandline arguments -uninstall -quiet -burn.related.upgrade -burn.embedded (and a bunch of other stuff). If you're writing a your custom UI in .NET, that will present itself in the WiX BootstrapperApplication base class with these property values:

  • Command.Action 属性为 LaunchAction.Uninstall
  • Command.Display 属性 NoneEmbedded
  • Command.Action property as LaunchAction.Uninstall
  • Command.Display property of None or Embedded

Command.Display 设置为 NoneEmbedded 时,您的自定义 UI 将需要隐藏自身(即:不要显示一个用户界面).我的猜测是您目前没有在这种情况下隐藏 UI,这就是它在升级期间显示的原因.

When the Command.Display is set to None or Embedded, your custom UI will need to hide itself (ie: don't display a UI). My guess is that you're currently not hiding the UI in this scenario, which is why it's displaying during the upgrade.

这篇关于WiX 烧录升级在最后显示卸载 UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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