theblase
12th June 2008 14:31 UTC
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:
http://193.224.61.147:85/pub/attachm...howreadme1.jpg
I want to dispaly it like this:
http://193.224.61.147:85/pub/attachm...howreadme2.jpg
Afrow UK
12th June 2008 18:40 UTC
Not a simple task. What is wrong with opening in notepad?
Stu
theblase
12th June 2008 20:49 UTC
Can you help me?
:rolleyes: :rolleyes: :rolleyes:
Can you help me?
Red Wine
12th June 2008 22:09 UTC
Design a custom page which suits your preferences and replace with this the standard mui finish page.
Afrow UK
12th June 2008 22:53 UTC
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
theblase
13th June 2008 12:44 UTC
Can I have a sample code for your idea? I'm a beginner NSIS programmer.
pospec
13th June 2008 12:53 UTC
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
13th June 2008 14:01 UTC
You may use this, works right with mui1 not tested yet with mui2,
http://nsis.sourceforge.net/Readme_P...I_License_Page