Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wix specify licence shows nothing

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?

like image 770
Daniel Powell Avatar asked Jun 17 '11 02:06

Daniel Powell


People also ask

Where can I download the wix3 wixlib?

It can be downloaded from WiX 3.0.5419.0 Source Forgesite. Download the wix3-sources.zip and go to \src\ext\UIExtension\wixlib. There you’ll find already translated all WiX texts in 12 Languages. Localizing the custom EULA license Here it gets ugly.

What is the default behaviour for a Wix website?

The default behaviour for a Wix website is as follows (with my interpretation in italics ): Requests to [ http ://domain.com] (javascript:;) are redirected to [ http ://**www.**domain.com] (javascript:;) (it adds www.) via an HTTP 301 redirect - that's okay

What to do if your Wix site is not working?

This error is typically resolved independently, but it would be best to check in with Wix support if it hasn’t disappeared within a few minutes. Discover must-have apps that will enhance the features of your Wix site. In addition to the issues mentioned above, you may also face some other technical problems while using the platform, including:

How to override default Eula license in Wix?

We can override the default EULA license easily by overriding WixUILicenseRtf WiX variable like this: <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />where License.rtf is the name of your custom EULA license file. The downside of this method is that you can only have one license file which means no localization for it.


2 Answers

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.

like image 140
Michael Kelley Avatar answered Sep 21 '22 09:09

Michael Kelley


Thanks to @Daniel Powell's decision

  1. Open WordPad
  2. Write your text
  3. Save by default(rtf)
  4. Rebuild your msi
  5. Profit.
like image 26
Igor Semin Avatar answered Sep 21 '22 09:09

Igor Semin