wix specify licence shows nothing - wix

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 that 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
Open WordPad
Write your text
Save by default(rtf)
Rebuild your msi
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.

Related

Can I increase the size of the feature selection window of `WixUI_Mondo`?

WiX. I use WixUI_Mondo. Can I increase this Window size?
Short answer is yes.
Long answer is that you will need to grab the wix source for the dialogs used within the WixUI_Mondo UI and modify the sizes of all the windows.
Here is the link to the WixUI_Mondo wxs file. You can see the DialogRefs used for this UI set. You can go up one level in git to look at the wixlib files and see that each DialogRef has its own wxs file defining the dialog itself. You'll need to copy the contents of each dialog ref into their own wxs files within your wixproj installer project and then you can modify the sizes of each dialog and realign some UI elements if needed. If you still need the WixUIExtension, you'll need to change the names of each dialog and the UI to not conflict with the defined UI and dialogs in the extension.
You can use localization files to change the dimensions of a control or dialog.

WiX Minimal UI shows first lines empty with Arabic text

I'm using WiX 3.7 I managed to get WiX Minimal UI to work properly following the instructions from http://wixtoolset.org/documentation/manual/v3/wixui/wixui_dialog_library.html
When I used Arabic Licence file is shown incorrectly (first lines are blank), unless user scrolls the text area in which case the text starts to look as expected.
I already tried the advice from the page http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html
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.
My current approach is to write a Custom EULA Dialog, but I would prefer to stay with WiX UI Minimal builtin Dialog... Have you experienced this problem? Do you know how to overcome it?

Why is my license not showing up?

In my <Product> I have:
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
LICENSE.rtf exists, and is an rtf file (I've tried saving with a few different programs in case it was a problem with one of them).
The file contains text (a whole license!), and the text is sensibly formatted.
Why then, is the License field of my installer blank?
It turns out you basically must generate your rtf with Wordpad, or make a perfect replica. Since mine are generated by scripts, I adjusted my script to insert the Wordpad header to the rtf file, and this fixed it.

vb.net vs2010 project deployment problem: eula.rtf is not displayed during application deployment. Any ideas?

I've created a setup and deployment project for my vb.net application using the Visual Studio 2010 wizard. I also added the eula.rtf file to the setup project and set it to install to the user's application folder. I then added a license agreement UI dialog in the setup project and pointed the licenseFile to eula.rtf. However, when testing the resulting setup.msi, the UI License Agreement dialog appears but no text is displayed inside the box where the eula should appear. I tried re-naming the eula and tried to change the encoding of the file but without success. Am I missing something? What should I do to make it work?
Many thanks.
Did you actually create a .rtf in the proper format or did you just rename a text file? You'll need either Wordpad or Microsoft Word to create one. Wordpad is the better choice, it is likelier to create RTF in a format that the rich text box fully supports.

Are tables supported when displaying RTF files in Windows Installer

I'm creating a Windows Installer setup file using Wix and the standard UI library. I've supplied my own RTF file for the license agreement, but tables are not displaying correctly. Are tables supported in this case, and if so, what do I need to do to get them to display?
Basically, the cell border is only being drawn around the first line of text in a cell, and text from the 2nd column is flowing into the the first column. Here's a picture:
Badly formatted tables in RTF file displaying in Windows Installer http://www.freeimagehosting.net/uploads/58fc5187b7.png
This thread discusses problems with RTF in installers, Bob Arnson recommends using WordPad to save the file. Apparently, that will create a simpler file which is more likely to display correctly.
The Windows Installer ScrollableText control doesn't support complex RTF, basically try to keep your RTF as simple as possible, always save in Wordpad and if it doesn't look like it's going to work.. it probably isn't.