wix 指定许可证什么也不显示 [英] wix specify licence shows nothing

查看:17
本文介绍了wix 指定许可证什么也不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的 wix 设置项目指定许可证.

I'm trying to specify the licence for my wix setup project.

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

I have created a rtf with a few dummy lines in wordpad/notepad/vs tried a few different ways as I read there was an issue with ones created in word but I dont think that should apply here, in any case I also opened it up in notepad++ and verified there is no funky characters hidden in it.

我这样指定文件

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

并且该文件存在于projectResources目录下.

And the file exists under the projectResources directory.

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

When I run the installer all that is shown in the licence area is a blank text box with no scroll bars etc.

还有什么我应该做的吗?

Is there something else I should be doing?

推荐答案

从写字板保存 license.rtf.请参阅此网页(http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html),特别是本节:

Save the license.rtf from WordPad. See this webpage (http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html), specifically this section:

富人存在一个已知问题用于显示文本的文本控件可能导致文本显示为空白,直到用户在控件中向下滚动.这是通常由复杂的 RTF 引起内容(如生成的 RTF在 Microsoft 中保存 RTF 文件时单词).如果您遇到这种行为在您的设置 UI 中,以下之一在大多数情况下,变通方法将解决它:

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:

在写字板中打开您的 RTF 文件并保存它从那里删除文件中的复杂 RTF 内容.保存后,重建您的 MSI.利用一个对话框集,而不是WixUI_Minimal 集.这个问题通常只发生在许可证协议屏幕是第一个在设置过程中显示,仅发生在 WixUI_Minimal 对话框中设置.

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 指定许可证什么也不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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