The license is displayed using the RichEdit control and it is adding that extra text because you probably have both a fldinst HYPERLINK
and a fldrslt
field in your RTF source. It is somewhat unclear to me what the exact syntax for a link is supposed to be in RTF.
If having "mailto:test@example.com" with the mailto prefix is acceptable then you can just insert that as plain text and let the automatic URL handler deal with it:
{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard Hello mailto:test@example.com World}
If that is not acceptable then you must modify NSIS to use a different version of the RichEdit control.
If you are able to compile NSIS then you can change Source\exehead\resource.rc:
Change RichEdit20W
and RichEdit20A
to RichEdit50W
and if you are unable to do that you can use Resource Hacker and modify the stubs in NSIS\Stubs. Change Dialog 102's RichEdit20A
/RichEdit20W
to RichEdit50W
.
Either way, you also need to add
Function .onInit
System::Call 'KERNEL32::LoadLibrary(t "msftedit")'
FunctionEnd
to your .NSI file.
If you do all these steps correctly then it will be using the newer RichEdit control that only exists on Windows XP and later and it should display the link correctly without the extra suffix.