执行重大升级时如何将 UILevel 设置为 INSTALLUILEVEL_BASIC?

发布于 2024-09-29 02:57:12 字数 302 浏览 1 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我最亲爱的 2024-10-06 02:57:12

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文