gpt4 book ai didi

wix WixStdbaLicenseUrl 在使用自定义主题时不会隐藏许可证

转载 作者:行者123 更新时间:2023-12-05 01:25:18 25 4
gpt4 key购买 nike

我用它来隐藏许可证对话框

<WixVariable Id="WixStdbaLicenseUrl" Value=""/

这行得通,直到我使用

引入自定义主题
<WixVariable Id="WixStdbaThemeXml" Value="Resource\RtfTheme.xml" />
<WixVariable Id="WixStdbaThemeWxl" Value="Resource\RtfTheme.wxl" />

我的主题只是内置 RtfTheme 的一个副本,稍作调整。我改变了窗口大小,并删除了修复按钮。

当我这样做时,会显示许可对话框(尽管文本为空)。我希望对话保持隐藏状态。

为什么?怎么修?

这是我尝试过的几种变体之一:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense" >
<bal:WixStandardBootstrapperApplication
LicenseFile="..\..\Tools\Building\buildIncludes\LicenseAgreement-Memo.rtf"
LogoFile="..\..\Tools\Building\buildIncludes\my.logo.png"
SuppressOptionsUI="yes"
/>

</BootstrapperApplicationRef>
<!-- supress license display in boot strapper -->
<WixVariable Id="WixStdbaLicenseUrl" Value=""/>
<WixVariable Id="WixStdbaLicenseFile" Value=""/>
<!-- we are using a customized theme -->
<WixVariable Id="WixStdbaThemeXml" Value="Resource\RtfTheme.xml" />
<WixVariable Id="WixStdbaThemeWxl" Value="Resource\RtfTheme.wxl" />

最佳答案

默认情况下,RTF based license theme 主题不提供隐藏 RTF 对话框的方法。您可以编辑主题以删除 RTF 许可证并自己接受复选框。

基于超链接的许可主题确实通过设置bal:WixStandardBootstrapperApplication元素的LicenseUrl提供了一种隐藏许可超链接和接受复选框的方法> 属性为 ""

因此,为了回答您的问题,我建议您执行以下操作:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
<bal:WixStandardBootstrapperApplication LicenseUrl=""
LogoFile="="..\..\Tools\Building\buildIncludes\"
ThemeFile="Resources\CustomHyperlinkBasedTheme.xml" />

<Payload SourceFile="Resources\OtherStuffIfYouNeed.It" />
</BootstrapperApplicationRef>
<WixVariable Id="WixStdbaThemeWxl" Value="Resources\CustomHyperlinkBasedTheme.wxl" />

重要的部分是将您的自定义主题基于超链接选项...或者只是自定义主题,这样它就没有您不想要的内容。 :)

关于wix WixStdbaLicenseUrl 在使用自定义主题时不会隐藏许可证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15441516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com