Old 13th November 2004, 21:41   #1
jonnebonne
Junior Member
 
Join Date: Nov 2004
Location: Oslo, Norway
Posts: 12
Question Message Box Title

Hi I am new here and almost new to the NSIS installer.
First of all, I wonder if there is a way to change the title of a message box:
MessageBox MB_OK "This is a test :P"

I am a skilled VB programmer, and in VB I use:
MsgBox "This is a test :P", vbInformation, "This is the title I wonder excist in NSIS ;P"
----------------------------
Question nr. 2:
I have seen some msgbox examples (in NSIS) where it is possible to make a default icon (instead of a Question or a Exclamation icon)... If it's possible, how can I change this icon?

Thank you!
BTW: NSIS is a very nice install system tnx!
jonnebonne is offline   Reply With Quote
Old 13th November 2004, 21:44   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
This should help you:
http://nsis.sourceforge.net/archive/...b.php?page=431

-Stu
Afrow UK is offline   Reply With Quote
Old 13th November 2004, 21:52   #3
jonnebonne
Junior Member
 
Join Date: Nov 2004
Location: Oslo, Norway
Posts: 12
Cool

Thank you Afrow UK! You are the man!
jonnebonne is offline   Reply With Quote
Old 13th November 2004, 23:08   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Or just call it from the system plugin API
code:

Name "example"
Caption "example"
XPStyle on
ShowInstDetails show
OutFile "example.exe"

Section -default
System::Call 'user32::MessageBox(i $HWNDPARENT, t "Message title", t "Message body", i 64) v r0'
SectionEnd




* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 15th November 2004, 12:37   #5
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
to the devs:
what about adding another optional param to the messagebox command? so, if the last param (the title) is empty, default title will be used.
Comm@nder21 is offline   Reply With Quote
Old 15th November 2004, 21:43   #6
Jnuw
Senior Member
 
Join Date: Sep 2004
Location: Wisconsin, US
Posts: 258
Quote:
Originally posted by Comm@nder21
to the devs:
what about adding another optional param to the messagebox command? so, if the last param (the title) is empty, default title will be used.
This would be great.
Jnuw is offline   Reply With Quote
Old 16th November 2004, 08:02   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
It can't be the last paramater as the last paramaters are the jump-to's for the MessageBox buttons. It can't be a paramater before those though because that would mean all the current NSIS scripts would have to be changed ("" added).

It could be added to the actual text string, so you'd put Title:my title at the end of the string (or something).

-Stu
Afrow UK is offline   Reply With Quote
Old 16th November 2004, 15:18   #8
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
ahyeah, that's a solution.
didn't think of the jumps
Comm@nder21 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