Old 9th March 2004, 08:49   #1
Asier
Junior Member
 
Join Date: Mar 2004
Posts: 2
Display the content of a file in a modern UI

Hello all,

I'm new to this forum, so this question might be already answered, but I just couldn't find any thread about it:

I want to display the content of a file describing the application to install. I would like to show it under the welcome text of the MUI_PAGE_WELCOME, or in a new page of the wizard. How can I do it? I don't want to display the application description inside the license.

Thanks in advance,
Asier is offline   Reply With Quote
Old 9th March 2004, 09:08   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
You can use Install Options plugin to create new pages.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 9th March 2004, 17:21   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
>> I don't want to display the application description inside the license.

2-License page...
was discussed earlier here...

http://forums.winamp.com/showthread....hlight=license
or
http://forums.winamp.com/showthread....hlight=license

HTH

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 9th March 2004, 21:16   #4
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
You can edit the file "ioSpecial.ini" using a code inside .onGUIInit function or using !define MUI_PAGE_CUSTOMFUNCTION_PRE "function" before !insertmacro MUI_PAGE_WELCOME, and putting the code to edit it inside "function".

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 10th March 2004, 07:44   #5
Asier
Junior Member
 
Join Date: Mar 2004
Posts: 2
Thumbs up

Thanks to all. I've managed to insert the text of the file in the Welcome page. I'm using a variable, which keeps some lines of the file, and then change the welcome page:

Var Description
!define MUI_WELCOMEPAGE_TEXT "$(MUI_TEXT_WELCOME_INFO_TEXT)\r\n\r\n------------------\r\n$Description"
!insertmacro MUI_PAGE_WELCOME
...

I've created a ReadLabelFile function:

Function ReadLabelFile
Push $0
Push $1
Push $2

InitPluginsDir
File /oname=$PLUGINSDIR\label "cnc\label"
FileOpen $0 "$PLUGINSDIR\label" "r"

FileRead $0 $1 ;Code
(...)
StrCpy $Description "$Description\r\n$1"
FileRead $0 $1 ;Date
(...)
FileClose $0

Pop $2
Pop $1
Pop $0
FunctionEnd
Asier 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