如何使WiX引导程序运行MSI的维护UI对话框,而不是引导程序的维护UI对话框。

huangapple go评论62阅读模式
英文:

How to get WiX Bootstrapper to run the MSI's maintenance UI Dialog INSTEAD OF the bootstrapper's maintenance UI Dialog

问题

我目前有一个 WiX MSI 项目,其中包含多个功能。这个 MSI 被包装在一个 WiX 标准的 Bootstrapper 应用程序捆绑项目中,因为我需要安装一些先决条件。安装效果很好,使用了正确的对话框,我可以选择/安装任何功能或全部都可以。问题出现在重新运行安装程序或在添加/删除程序中使用更改选项时。与其启动 MSI 的维护对话框,它运行 Bootstrapper 的维护 UI 对话框。这意味着没有选择修改安装以安装可能最初未安装的其他功能的选项。我只能选择修复、卸载和取消。

我需要的是使用正确的“Mondo”维护 UI 对话框,以便我可以修改已安装的功能。有人能否指导我如何强制 Bootstrapper 运行 MSI 的维护 UI?!?

我在 Bootstrapper 中的 MSIPackage 元素中使用了以下标签:
Cache="always" EnableFeatureSelection="yes" DisplayInternalUI="yes"

我在 MSI 中使用了 UIRef Id="WixUI_Mondo" 来引用 mondo 对话框集。

如果我只安装 MSI,我会得到 Mondo 维护 UI 对话框,其中包含修改安装的选项。

当我安装包含相同 MSI 的 Bootstrapper .exe 时,我得到 Bootstrapper 维护 UI 对话框,其中缺少修改安装的选项(如原始帖子中所示)。我感到很困惑,所以任何帮助将不胜感激。

英文:

I currently have a WiX MSI project with several features. This MSI is wrapped in a wix standard Bootstrapper Application bundle project as I need to install several prerequisites. The Installation works great, the right dialogs are used and I can select/install any of the features or all perfectly. The issue arises when I rerun the installer, or use the change option in add/remove programs. Instead of launching the MSI's maintenance dialog, it is running the bootstrapper's maintenance UI dialog. This means that there is no option to modify the installation to install other features that might not have been installed originally. All I get are options for repair, uninstall and cancel.

如何使WiX引导程序运行MSI的维护UI对话框,而不是引导程序的维护UI对话框。

What I need is for the proper "Mondo" maintenance ui dialog to be use do I can modify the features installed. Can someone please advise how can I force the bootstrapper to run the MSI's maintenance UI instead?!?

I have used the following tags in the MSIPackage element in the bootstrapper:
Cache="always" EnableFeatureSelection="yes" DisplayInternalUI="yes"

I use UIRef Id="WixUI_Mondo" in the MSI to reference the mondo dialog set.

If I install just the MSI, I get the Mondo maintenance ui dialog, with options to modify the installation:

如何使WiX引导程序运行MSI的维护UI对话框,而不是引导程序的维护UI对话框。

when I install the Bootstrapper .exe which includes that same MSI, I get the bootstrapper maintenance UI dialog, which is missing the option to modify the installation ( As shown in the original post).
I'm at a loss, so any help would be greatly appreciated.

答案1

得分: 1

WixStdBA在WiX v3中除了初始安装时不显示内部UI外,从不显示内部UI。

WiX v4有一个新的BA,可以更好地控制显示内部UI。

英文:

WixStdBA in WiX v3 never shows internal UI except during initial install.

WiX v4 has an new BA that has more control for showing internal UI.

huangapple
  • 本文由 发表于 2023年5月11日 03:24:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76221945.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定