没有 Treelines 的 WiX 根特征 [英] WiX root feature without Treelines

查看:20
本文介绍了没有 Treelines 的 WiX 根特征的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以让特征树中的根特征没有树线,因此您无法展开和折叠它?

Is it possible to have the root feature in the feature tree to not have tree lines so you can't expand and collapse it?

所以下面的特征树:

<Feature Id="root" Level ="1" Title="Root" Display="expand" AllowAdvertise="no"
         ConfigurableDirectory="INSTALLDIR" Absent="disallow" TypicalDefault="install"
         InstallDefault="local">
  <Feature Id="child1" Title="Child 1"
           Level="1" Display="expand" AllowAdvertise="no"
           InstallDefault="local" >
    <ComponentGroupRef Id="SharedComponents" />
  </Feature>
  <Feature Id="child2" Title="Child 2"
           Level="1" Display="expand" AllowAdvertise="no"
           InstallDefault="local" >
    <ComponentGroupRef Id="SharedComponents" />
  </Feature>
  <Feature Id="childgroup1" Title="Child Group 1"
           Level="1" Display="expand" AllowAdvertise="no"
           InstallDefault="local" >
    <Feature Id="groupchild1" Title="Child 1"
             Level="1" Display="expand" AllowAdvertise="no"
             InstallDefault="local" >
      <ComponentGroupRef Id="SharedComponents" />
    </Feature>
    <Feature Id="groupchild2" Title="Child 2"
             Level="1" Display="expand" AllowAdvertise="no"
             InstallDefault="local" >
      <ComponentGroupRef Id="SharedComponents" />
    </Feature>
  </Feature>
</Feature>

给我这个:

但我宁愿不在根元素上有树线.

But I'd rather not have the tree lines on the root element.

推荐答案

External GUI: 我不知道有什么方法可以去除虚线,缺少使用外部 GUI - 这是可能的(看到这个答案).

External GUI: I don't know of any way to remove the dotted lines, short of using an external GUI - which is possible (see this answer).

隐藏功能:但是,您可以将功能设置为隐藏,在这种情况下,子功能也不会显示.我不确定你到底想要什么.

Hide Features: You can, however, set features to be hidden, in which case the sub-features won't show either. I am not sure exactly what you want.

特征四已隐藏:

<Feature Id="One" Title="One" Level="1" >
  <Feature Id="Two" Title="Two" Level="1"/>
  <Feature Id="Three" Title="Three" Level="1">
    <Feature Id="ThreeOne" Title="ThreeOne" Level="1" >
    </Feature>
    <Feature Id="Four" Title="Four" Level="1"  Display="0" />
  </Feature>
</Feature>

MSI GUI:为了记录,我应该指出 MSI GUI 是过去计算时代(90 年代末)的旧遗物.因此,除了替换上面链接中描述的整个内容(以及来自 MSI SDK:MsiSetExternalUI).

Installshield 和 Advanced Installer 等工具将允许您使用具有更现代功能的模板 GUI,而 WiX 也允许您完全编写自己的 GUI:具有现代外观和感觉的 WIX 安装程序(与上面相同的链接).

Tools such as Installshield and Advanced Installer will allow you to use template GUIs with more modern features, and WiX allows you to write your own GUI entirely as well: WIX Installer with modern look and feel (same link as above).

所有自定义 GUI 均基于 MsiSetExternalUI MSI API(据我所知).

All the custom GUIs are based on the MsiSetExternalUI MSI API (as far as I know).

这篇关于没有 Treelines 的 WiX 根特征的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆