gpt4 book ai didi

wix 指定许可证什么也不显示

转载 作者:行者123 更新时间:2023-12-03 07:03:47 25 4
gpt4 key购买 nike

我正在尝试为我的 wix 安装项目指定许可证。

我在wordpad/notepad/vs中创建了一个带有一些虚拟行的rtf,尝试了几种不同的方法,因为我读到在word中创建的那些有一个问题,但我认为这不应该适用于这里,无论如何我也在 Notepad++ 中打开它并验证其中没有隐藏任何时髦字符。

我像这样指定文件

<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\Resources\test.rtf" />

该文件存在于project\Resources目录下。

当我运行安装程序时,许可证区域中显示的所有内容都是一个空白文本框,没有滚动条等。

还有什么我应该做的吗?

最佳答案

从写字板保存许可证.rtf。请参阅此网页 ( http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html ),特别是此部分:

There is a known issue with the rich text control used to display the text of the license file that can cause the text to appear blank until the user scrolls down in the control. This is typically caused by complex RTF content (such as the RTF generated when saving an RTF file in Microsoft Word). If you run into this behavior in your setup UI, one of the following workarounds will fix it in most cases:

Open your RTF file in WordPad and save it from there in order to remove the complex RTF content from the file. After saving it, rebuild your MSI. Use a dialog set other than the WixUI_Minimal set. This problem typically only occurs when the license agreement screen is the first one displayed during setup, which only happens with the WixUI_Minimal dialog set.

关于wix 指定许可证什么也不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6380724/

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