Localizing the EULA

All of the dialogs sets from the WixUIExtension display an End User's License Agreement (EULA). It's always in English, defaulting to an RTF file called License.rtf in the WixUIExtension source files. You'll want to replace this with your own agreement and at the same time localize it. Luckily, all you have to do is specify a path to your own RTF file with the link-time variable WixUILicenseRtf. The following line, which you can place in your main .wxs file, replaces the default license agreement with a custom one:

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

You can also set this value from the command line when calling Light via the -d flag:

Light.exe -dWixUILicenseRtf=CustomAgreement.rtf -loc es_es.wxl ...

Get WiX: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.