WiX burn Upgrade shows uninstall UI at the end

与世无争的帅哥 提交于 2019-12-30 10:13:13

问题


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.


回答1:


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 property as LaunchAction.Uninstall
  • Command.Display property of None or Embedded

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.



来源:https://stackoverflow.com/questions/30117285/wix-burn-upgrade-shows-uninstall-ui-at-the-end

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!