Wix3 选择性选择功能

发布于 2024-09-16 00:02:07 字数 154 浏览 4 评论 0原文

在Wix中,如何构建功能树,以便当通过“将安装在本地驱动器上”选择父功能时,默认选择某些子功能?

我看到,只有当我选择“将安装整个功能..”选项时,我才会看到子功能也被选中,但所有功能都被选中。我想要对此进行一些精细的控制。

有什么指点吗?

谢谢

In Wix, how can I construct a feature tree such that when the parent feature is selected via "Will be installed on local drive" some of the child features get selected by default?

I see that only when I select "Entire feature will be installed.." option I see that the sub features are also getting selected, but all of them get selected. I want some granular control over that.

Any pointers?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

贪了杯 2024-09-23 00:02:07

您看到的内容与 Windows Installer 广告有关。请务必阅读:

广告 (Windows)

通过这种形式的广告,您可以安装广告的快捷方式或 COM 注册,并且在您实际尝试调用所述入口点之前,不会安装该功能及其组件和文件。这是 10 年前的设计要求,当时硬盘驱动器很昂贵,对我来说是一个有点无用的功能。

就我个人而言,我会在每个功能上使用Feature@AllowAdvertise =“no”和Feature@TypicalDefault =“install”。这应该会让您的自定义设置看起来像您想要的那样。如果没有,我可能误解了这个问题,我们需要讨论 INSTALLLEVEL 概念。

WiX V3 功能元素

What you are seeing is related to Windows Installer Advertisement. Be sure to read:

Advertisement (Windows)

With this form of advertisement you can install an advertised shortcut or COM registration and the feature and it's components and files won't be installed until you actually try to invoke said entry point. This was a design requirement from 10 years ago when hard drives were expensive and to me is a somewhat useless feature.

Personally I would Feature@AllowAdvertise="no" and Feature@TypicalDefault="install" on each of your features. This should get your Custom Setup looking the way you want it. If it doesn't, I might have misunderstood the question and we need to discuss the INSTALLLEVEL concept.

WiX V3 Feature Element

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