如何使用.txt文件作为WiX安装包中的许可证?

发布于 2025-01-10 16:23:34 字数 578 浏览 5 评论 0原文

是否可以使用 RTF 以外的任何其他文件类型作为许可证? RTF 几乎已经死了,我想使用一种在标准文本编辑器中可读的格式(例如 .txt 或 .md)。

以下是我目前正在使用 RTF 许可证的内容,该许可证工作正常:

< /code>

如果我只是用 TXT 文件替换路径,如下所示:

然后我得到一个空白许可证对话框:

在此处输入图像描述

似乎没有 WixUILicenseTxt

Is it possible to use any other filetype than RTF as the license? RTF is practically dead, and I'd like to use a format that's readable in a standard text editor (like .txt or .md) instead.

Here's what I'm currently using with an RTF license, which is working correctly:

<WixVariable Id="WixUILicenseRtf" Value="..\Eula\EulaText_$(var.Lcid).rtf" />

If I simply replace the path with a TXT file like so:

<WixVariable Id="WixUILicenseRtf" Value="..\Eula\Test.txt" />

then I get a blank license dialog:

enter image description here

There doesn't appear to be a WixUILicenseTxt

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

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

发布评论

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

评论(1

屋顶上的小猫咪 2025-01-17 16:23:34

Windows Installer 引擎提供的 ScrollableText 控件是一个RICHEDIT 控件处于只读模式。

您可以仅在其中放置文本(包括 Markdown),但它将使用富文本规则呈现。

The ScrollableText Control the Windows Installer engine provides is a RICHEDIT control in read-only mode.

You can put just text in there (including Markdown) but it will be rendered using rich text rules.

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