Skip to content
⌘ NSIS Forum Archive

Hyperlink not active in readme text

9 posts

Rippel#

Hyperlink not active in readme text

Hi all,

I have a readme text that I display with

!insertmacro MUI_PAGE_README "${SOURCEPATH}\readme.txt"
All good except I have a web address at the bottom of the readme that by default the page is showing as underlined and clickable (the mouse pointer changes on hover over). However, clicking the text does nothing. Since I'm passing in a plain text file I didn't expect to have a working hyperlink but if this is available to me then I would like to make this active! Either that or prevent it from becoming underlined so my users don't expect to be able to click it.

I guess I'm missing something, but what?

Thanks!
JasonFriday13#
What app is the readme appearing in? The readme.txt file isn't read by nsis, it's just passed to the app opening it (usually notepad.exe).
Rippel#
Hi,

The readme is embedded on the MUI_PAGE_README page of the installer, included with MUI_EXTRAPAGES.nsh I believe. (I understand it's based on the MUI_PAGE_LICENSE which also displays a readme page)

The hyperlink is appearing inside the readme text shown on that page.
JasonFriday13#
I had a quick look on the wiki and it is using the license page. The problem is that it's a richedit control, which means it supports different text sizes, colours and hyperlinks, so there's not much you can do about it. I made a test script and the hyperlink works for me (though I am using the latest source code from sourceforge, but that shouldn't make a difference to the resulting installer).
Rippel#
Ok, still no good for me. I also made a simple installer to test the license page and the readme page, both with a txt file and with an rtf, but still the URL is displayed as a clickable hyperlink but nothing happens when clicked.

Thanks for the help though, will keep plugging away at it.
jpderuiter#
Here a post with the same issue:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

Not sure if it helps, because solution is not confirmed.
Rippel#
Thanks for the link. However, still does not work for me (using NSIS 3.0a1). Have created a fresh rtf in WordPad and included the URL with and without the http:// at the beginning, and without any "alternate" text so the full URL is displayed.

It's clickable and working in WordPad (on Win8) but doesn't work on the license or readme pages of the simple NSIS installer... tested on Win8 and my colleague's Win7 and XP.

Don't worry though, will work around it - not worth spending more time over it. Frustrating that even if I use a plain text .txt file though, the web address text becomes formatted as a hyperlink on the rich text control in NSIS... If I can suppress that then at least my users won't see a non-working hyperlink?
Anders#
Clicking license URLs in Unicode installers is broken in v3.0a1, will be fixed in the next alpha...