开发者

wix specify licence shows nothing

开发者 https://www.devze.com 2023-03-13 09:26 出处:网络
I\'m trying to specify the licence for my wix setup project. 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 create

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

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 t开发者_运维技巧hat should apply here, in any case I also opened it up in notepad++ and verified there is no funky characters hidden in it.

I am specifying the file like so

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

And the file exists under the project\Resources 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?


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

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.


Thanks to @Daniel Powell's decision

  1. Open WordPad
  2. Write your text
  3. Save by default(rtf)
  4. Rebuild your msi
  5. Profit.


Open trf file in wordpad instead of md-word, It will solve the scroll issue


<WixVariable Id="WixUILicenseRtf" Value="test.rtf" />

and include your test.rtf in the Setup project.

0

精彩评论

暂无评论...
验证码 换一张
取 消