简体   繁体   中英

WiX installer: Product End User Agreement shows dummy text

I have an existing setup project. The end user license dialog shows dummy text (Lorum ipsum) instead of the default agreement. I have been trying to resolve the issue but I cannot figure out what to change and how to get the default end user licence agreement?

(I didn't post the codes because it has a lot of company's urls.)

But here a chunk for UI node:

<UI Id="MyWixUI_FeatureTree">
  <UIRef Id="WixUI_FeatureTree" />
  <UIRef Id="WixUI_ErrorProgressText" />

  <DialogRef Id="PlatformServiceDlg" />
  <DialogRef Id="IMDatabaseDetailsDlg"/>
  <DialogRef Id="EmailDatabaseDetailsDlg"/>
  <DialogRef Id="SMTPSettingsDlg"/>
  <DialogRef Id="EmailRecipientsDlg"/>
  <DialogRef Id="ServiceCredentialsDlg"/>

  <Publish Dialog="CustomizeDlg" Control="Next" Property="_BrowseProperty" Value="[DATA_DIRECTORY]" Order="1">1</Publish>

  <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ServiceCredentialsDlg">1</Publish>
</UI>

The licence agreement looks like this :

在此输入图像描述

Answer:

You have to insert a line of code in between the product tag within Product.wxs file.

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

For Value , insert the path of your .rtf file (mine was in root directory so no need to give the full path).

Note : Steps of creating your .rtf file:

  • Go to the directory where you want to create your .rtf file.
  • Type/ copy-paste your licensing text in the word-pad and save it with extension .rtf.
  • Give the path in the Value field.
  • rebuild your setup project.
  • verify your installation file.

May not apply to all: I could see that creating .rtf file using MS Word didn't work for me. It just displayed blank in the license area of the installer.

References: From Powell's comment here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM