Skip to content
⌘ NSIS Forum Archive

Display Readme.txt directly on the finishpage

8 posts

theblase#

Display Readme.txt directly on the finishpage

How can I display the installed Readme.txt directly on the finishpage. Not with a checkbox, directly on a textarea.

Now I use it:


I want to dispaly it like this:
Red Wine#
Design a custom page which suits your preferences and replace with this the standard mui finish page.
Afrow UK#
The non simple way would be to add a multi-line text field, hide it before you display the dialog and show it when the user checks the check-box. You still have a problem though if the file is longer than 1023 characters (in which case you'll need to use the NSIS special build for longer strings).

Stu
pospec#
AfrowUK, I think that 1023 bytes is not a limitation. He can use CustomLicense plugin which loads bigger files.

In this case I am using:

nsDialogs::CreateControl /NOUNLOAD ${__NSD_Text_CLASS} \
${DEFAULT_STYLES}|${WS_TABSTOP}|${ES_MULTILINE}|${ES_READONLY}|${WS_VSCROLL} \
${__NSD_Text_EXSTYLE} 0% 10% 100% 110 ""
Pop $0

CustomLicense::LoadFile "$PLUGINSDIR\License.txt" "$0"
${NSD_AddStyle} $0 ${ES_MULTILINE}|${ES_READONLY}
Red Wine#
You may use this, works right with mui1 not tested yet with mui2,