![]() |
#1 |
Junior Member
Join Date: Jul 2011
Posts: 1
|
NSIS Message Box Title, can be changed?
I am wondering can I modify the title of the message box title? And can I use my own icon instead of the icons provided by NSIS.
Thanks! |
![]() |
![]() |
![]() |
#2 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,369
|
you have a little more options using the messagebox plugin (seems it was deleted from the wiki), but iirc it didn't allow changing the icon. another solution would be looking at nsWindows, which allows you to create custom pages at a size of your liking.
|
![]() |
![]() |
![]() |
#3 |
Join Date: Sep 2003
Posts: 27,873
|
the removed messagebox plug-in did allow for the icon to be customised (it basically exposed everything the MessageBox(..) api exposed but was removed as i cannot support / re-develop something i lost the code to 6+ years ago - plus the compile didn't work correctly on most machines where DEP is enabled. hence the removal.
nswindows or trying to use the system plug-in (which wasn't as adapt at doing such things when i made my removed plug-in) is the recommended option i'd go with if trying to create something like a messagebox. -daz |
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Try like this, for a simple solution:
code: My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Oct 2011
Posts: 3
|
Do You know maybe how to change the button's text on the dialog box? For instance from 'Yes' to 'Whatever'? Please let me know.
|
![]() |
![]() |
![]() |
#6 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Not possible with the "native" Windows dialog boxes (details).
There are certain flags to control which buttons will be shown, but no way to freely define the text. You'd have to create your own window and manually add the buttons, I fear... My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#7 |
Join Date: Sep 2003
Posts: 27,873
|
wouldn't nsWindows be an option to create a dialogbox-like window?
-daz |
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Oct 2011
Posts: 3
|
Thanks for the response. What I need to do is to display a simple menu at the beginning of the installation process. This menu would contain three options:
1) Show manual 2) Install 3) Exit I thought to use the MessageBox but I can't customize the buttons' captions. How it can be done in different way? Please share your ideas. |
![]() |
![]() |
![]() |
#9 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Instead of a pop-up window (message box), why not simply use a custom installer page as first page?
See nsDialogs manual for details: http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Oct 2011
Posts: 3
|
I'm reading this tutorial right now. Is there any way to hide the bar at the bottom of the window?
|
![]() |
![]() |
![]() |
#11 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Nope, as it's not part of the "inner" dialog, where the nsDialogs page is being displayed.
You can disable the buttons at the bottom of the installer dialog while your custom page is being shown though. For the next button you would use this code to disable: PHP Code:
My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
|
Tags |
messagebox, nsis, title |
Thread Tools | Search this Thread |
Display Modes | |
|
|