Skip to content
⌘ NSIS Forum Archive

NSIS 2 - Beta 0 is out!

202 posts

Joost Verburg#
Modern UI update

Removed the titlebar from the Verifying installer & Unpacking data dialog. 🙂

Available in the new alpha 7 release or on CVS.
Daab#
I've tried using the modern UI in the 2.0 alpha 7. I want to change UI components during runtime (text, color).

The documentation about ".InitDialog" explains that this event occurs only for new outer dialogs and not InstallOptions inner pages. However, I've seen a posts here that there is/will be an example on how to use the modern UI's flexibility even with InstallOptions pages...?

I mean that I want to change the outer dialog (for instance, change the text "License Agreement" to something else when a new inner dialog (a custom InstallOptions page of mine) is displayed.

I tried using ".onNextPage" based on the original example, but I guess that these component changes need to occur before actual display in order to take effect, and since the outer dialog is not reloaded each time an inner dialog is...

Well, any ideas?

Also, (maybe) unrelated: I saw some posts about a callback function called ".onStaticCtlBkColor" - but other than an example here in the forum on how to use it I didn't find any documentation on what it actually is, what it does, and when.
kichik#
This callback is called right after an inner dialog is created (excluding InstallOptions dialogs) and before it is shown. Useful for CreateFont, SetStaticBkColor and any other last minute text changes.
It works for inner dialogs, not outer dialogs, and no IO dialogs. I haven't seen any posts about IO and the modern UI, I don't know what you are talking about.

Use SendMessage ${WM_SETTEXT} to set the text of the outer dialog when an inner dialog is created (.onNextPage, .onPrevPage).

.onStaticCtlBkColor is dead, use SetStaticBkColor from .onInitdialog instead.
okapi#
Separate Installer Icon

The setting Icon is used for the desktop icon of the installer and also inside the installer in the upper right corner. I would like to suggest separating that into 2 setting such that you could use a different icon inside vs outside the program.

Steve
kichik#
I got your message at SF, there is no need to post both here and there. I will try to add it to the next version.
YtseJam#
Hey kichik,

I stumbled across NSIS2 alpha 7 at betanews.com(here) and... Well, they make it sound as if this is an official alpha release of NSIS2, when it's actually just your changes.
They also release it under Justin's name and I just thought that you might want to post there a little note, noting that this is not an official NSIS release untill Justin will actually review and merge this to his 'official' NSIS... (Less confusion, even though there were never any bad reviews about NSIS).

I totally dislike betanews.
(I could also be just wrong and Justin already accepted your changes...🙂)
kichik#
Thanks for the heads up nant, I have dropped them a note.
Justin is currently working on merging the changes.
justin#
Hey all, sorry to be gone so much, just been busy with other projects (and non-computer-related funness). 🙂 I'd just like to thank KiCHiK and everybody who has been contributing to the NSIS 2.a series. It looks HOT. I'm basically in the process of looking through it all, trying to catch up so I can understand everything that is happening.. But basically, it looks like when kichik and everybody is ready, we'll just make it the official 2.0 beta which we put on nullsoft.com for a week or two.. Then we fix any small or glaring bugs, and go to final. Or something. This sound good to people?

This really does rock guys, thank you for all this work. And people who have been contributing, update the docs/comments/msgs printed by makensis to reflect you/add credits. I'll coordinate with kichik to get the latest stuff (or I'll just pull the cvs from sf).

You guys put a big fat smile on my face. Anyway. 🙂

-Justin
kichik#
Right-to-left (RTL) support available at the CVS!
Just use ChangeUI /RTL (...) (ui file) and it will move it all around for you! No RTL language files though 😁

Friendly warning: no NLF will work with the latest CVS version for now. The reason is a new version of the NLF format due to a new string. You will have to wait for your language translator or send a translation yourself. The new string, by the way, is "Copy Details To Clipboard" which is used for a nice feature Sunjammer has added. It allows you to right-click the log window and copy all of its contents.
kichik#
And here is a screen shot (look at the buttons).
Sunjammer#
Originally posted by kichik feature Sunjammer has added. It allows you to right-click the log window and copy all of its contents.
Before anyone asks yes CTRL-C support was tried as a way of avoiding the need for a new language string but (a) the context menu is nicer 🙂 and (b) the CTRL-C code was crap :P
YtseJam#
kichik, good work on the RTL support(most people here wouldn't really understand the change in that screen shot, btw... They don't understand Hebrew, remember? 😉).

I totally love this and good to know that Justin is going to add all your hard work to the official NSIS!
kichik#
Bad news =/
WS_EX_RIGHT doesn't work on TreeView and ListView, which means the log, and the components selection page are not completely RTL 🙁

Actually, it should only works on OS with full support for a RTL language (localized).
Joost Verburg#
Welcome back Justin 🙂

I don't understand the screenshot at all 😁 I'll update the Dutch/German/Frensh language files soon.
Joost Verburg#
Originally posted by kichik
Bad news =/
WS_EX_RIGHT doesn't work on TreeView and ListView, which means the log, and the components selection page are not completely RTL 🙁

Actually, it should only works on OS with full support for a RTL language (localized).
nm
kichik#
Joost, it doesn't. I have one, I can tell 😁

Just look at the buttons, they are on the left 😉
Joost Verburg#
I see 🙂 Quite strange, RTL listviews and treeview are possible, there are some examples on MSDN.
Joost Verburg#
http://www.microsoft.com/globaldev/w...WRG_mirror.asp

http://www.microsoft.com/middleeast/msdn/
kichik#
Thanks Joost, but:
Only localized Arabic/Hebrew Win98 and all versions of Win2000 support mirroring.
🙁
kichik#
Fixed a bug that prevented the last letter from getting copied (copy details to clipboard feature). Available at the CVS.

Also new:
Always load RichEdit v2 if present.
DeleteRegKey 3 now only accepts two parameters as it should (and possibly /ifempty)
kichik#
Plugin call method has changed.
You must now call plugins in the form of dllname[.dll]::FunctionName.
This prevents clashes with future commands.
Sunjammer#
Lose the .dll completely, it shouldn't be part of script syntax and is unnecessary and implied.
kichik#
Bug alert: LandDLL::LangDialog must be used first in the script or it might pop a lot of things it shouldn't from the stack.
kichik#
Make sure you run SetCVSShellCommands.exe before you start using the latest version of MakeNSISw from the CVS.
Sunjammer#
MakeNSISW

MakeNSISW has had a *lot* of work done to it to fix bugs over the last couple of days. The only way I have now of crashing it involves compiling about 30 .nsi files in parallel 😁... so to anyone who has been having trouble with MakeNSISW I'd definitely recommend downloading the latest MakeNSISW.exe from CVS (get cvs revision 1.21, the most recent as of this post, here).