Old 12th June 2008, 13:31   #1
theblase
Junior Member
 
Join Date: Jul 2006
Location: Hungary
Posts: 31
Question 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:
theblase is offline   Reply With Quote
Old 12th June 2008, 17:40   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Not a simple task. What is wrong with opening in notepad?

Stu
Afrow UK is offline   Reply With Quote
Old 12th June 2008, 19:49   #3
theblase
Junior Member
 
Join Date: Jul 2006
Location: Hungary
Posts: 31
Can you help me?


Can you help me?
theblase is offline   Reply With Quote
Old 12th June 2008, 21:09   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Design a custom page which suits your preferences and replace with this the standard mui finish page.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 12th June 2008, 21:53   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 13th June 2008, 11:44   #6
theblase
Junior Member
 
Join Date: Jul 2006
Location: Hungary
Posts: 31
Can I have a sample code for your idea? I'm a beginner NSIS programmer.
theblase is offline   Reply With Quote
Old 13th June 2008, 11:53   #7
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
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}
pospec is offline   Reply With Quote
Old 13th June 2008, 13:01   #8
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
You may use this, works right with mui1 not tested yet with mui2,

http://nsis.sourceforge.net/Readme_P...I_License_Page

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump