是否可能在特征树中使根特征不具有树线,以致于无法展开和折叠它?
下面是功能树:
<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>
给我这个:
但是我宁愿在根元素上没有树线。
答案 0 :(得分:0)
外部GUI :除了使用外部GUI 外,我不知道删除虚线的任何方法。 (see this answer)。
隐藏功能 :但是,您可以将功能设置为隐藏,在这种情况下,子功能也不会显示。我不确定您到底想要什么。
功能四被隐藏:
<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 :作为记录,我应该指出,从过去的计算时代(90年代后期)开始,MSI GUI到现在是一个古老的遗物。因此,除了要替换上面链接(和MSI SDK:MsiSetExternalUI中的链接)中描述的全部内容之外,GUI并不是很容易做到。
诸如Installshield和Advanced Installer之类的工具将使您能够使用具有更现代功能的模板GUI,而WiX也使您也可以完全编写自己的GUI:WIX Installer with modern look and feel(与上面的链接相同)。
所有自定义GUI均基于MsiSetExternalUI MSI API(据我所知)。