执行重大升级时如何将 UILevel 设置为 INSTALLUILEVEL_BASIC?
我正在使用 WiX 构建安装/升级包。 我正在使用 WixUI_InstallDir 对话框集。
我想要做的是在执行已安装产品的主要升级时进行完全自动化的安装(无向导)。
是否可以:
- 在安装期间有条件地更改 UILevel 的值? (INSTALLUILEVEL_FULL / INSTALLUILEVEL_BASIC)
- 有条件地更改对话框集吗? (WixUI_InstallDir / WixUI_Minimal)
还是有更好的方法来做到这一点?
I'm building an installation/upgrade package with WiX.
I'm using the WixUI_InstallDir dialog set.
What I want to do is to have a fully automated installation (no wizard) when performing a major upgrade of the installed product.
Is it possible to:
- conditionally change the value of UILevel during the installation? (INSTALLUILEVEL_FULL / INSTALLUILEVEL_BASIC)
- conditionally change the dialog set? (WixUI_InstallDir / WixUI_Minimal)
Or is there a better way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 BasicUI 中,UI 序列不运行。问题是,在 FindRelatedProducts 运行并找到相关的 ProductCode 之前,您不知道自己是否是 MajorUpgrade。我认为您能做的最好的事情就是在您的 WelcomeDlg 上设置一个条件,使其在重大升级时不显示。
In BasicUI the UI Sequence isn't run. The problem is you don't know if you are a MajorUpgrade until FindRelatedProducts runs and finds a related ProductCode. I think the best you could do is put a condition on your WelcomeDlg to not be displayed when it's a Major Upgrade.