Skip to content
⌘ NSIS Forum Archive

Modern User Interface 1.6

46 posts

Joost Verburg#edited

Modern User Interface 1.6

Finally...Modern UI 1.6 is ready!

New Welcome and Finish pages with automatic 'Ask for Reboot', 'Run Program' and 'Show Readme' options! 😁





Grab the latest version from CVS or download a snapshot at http://nsis.sourceforge.net/nightly/nsis.zip

Translations

All language files need to be updated again 🙂 Please post your updated files here:


Note that also existing strings have been updated.

Thanks 😉
R@m00n#
No, it's not because of the language file.
I changed the German language file.
Still "Finish" when using Dutch language file which is in the new format with the new strings.
R@m00n#
Another bug in ModernUI 1.16:

If I use language files (German, English), let the user select the language on .onInit and use !insertmacro MUI_WELCOMEFINISHPAGE_INIT then the window text is always the German one.
All button captions and following pages are alright but not the welcome page.

Ramon
kichik#
The last one happens because MUI_WELCOMEFINISHPAGE_INIT should be in SetWelcome and not .onInit. We'll fix both of the problems later, hopefully tomorrow.
Joost Verburg#edited
Thanks for your bugreports. Fixed 'em all 😁

You don't even have to insert the init macro anymore, the Modern UI does it for you.
mikem4600#
Another small bug (at least I think 😉)

At the MUI_STARTMENU_WRITE_BEGIN of system.nsh, it should compare with >, not ^, ie

StrCmp ${MUI_TEMP1} ">" no_startmenu_shortcuts 
because the dll returns the name with > in front, not ^
Joost Verburg#edited
Thanks, fixed 🙂

I have updated the Modern UI to use the default shell font for the texts and Verdana for the titles on the Welcome/Finish pages.

A new NSIS version without the DIALOGEX bug will be uploaded when SF CVS is up again.
rainwater#
Maybe its just me, but none of the Modern UI examples work (current cvs). They all compile but when executed nothing is shown.
Sunjammer#
Originally posted by rainwater
Maybe its just me, but none of the Modern UI examples work (current cvs). They all compile but when executed nothing is shown.
Same here.
matini#
All ok here.

P.S:
StartMenu.nsi and WelcomeFinish.nsi are always missed.
Please add them into the makensis.nsi. 🙂
Joost Verburg#
As I already said, there was a DIALOGEX bug in NSIS's ChangeUI.

SourceForge CVS was down yesterday, so kichik could not upload te fixed version.

I have uploaded a fixed makensis.exe now 🙂 The sources will be updated when kichik is back online.
RIV@NVX#
Help needed.
I insert language macro (i don't use multilanguage), but I can't chagne strings (when I specify, it doesn't change).

Three strings I need to change: DirText, LicenseText and ComponentText. Anyone can help?
Joost Verburg#
Have a look at the Readme 😁

Example:


!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog"
!insertmacro MUI_LANGUAGE "English"
RIV@NVX#
Originally posted by Joost Verburg
Have a look at the Readme 😁

Example:


!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog"
!insertmacro MUI_LANGUAGE "English"
I will try again.
RIV@NVX#
OK, works now - I figured where problem was. I needed to use "" quotes instead of ''. Why? (NSIS recognizes both of them).
Joost Verburg#
What do you mean?

Both

!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog"
and

!define MUI_INNERTEXT_LICENSE_TOP 'Text on the top of the license dialog'
work.

If you are using ' chars in your string, you should use double quotes.

'What's new' won't work, you should use "What's new".
RIV@NVX#
Originally posted by Joost Verburg
What do you mean?

Both

!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog"
and

!define MUI_INNERTEXT_LICENSE_TOP 'Text on the top of the license dialog'
work.

If you are using ' chars in your string, you should use double quotes.

'What's new' won't work, you should use "What's new".
I had this situation
!define MUI_INNERTEXT_LICENSE_TOP 'blah blah "blah" blah blah'
and it didn't work. When I changed to this:
!define MUI_INNERTEXT_LICENSE_TOP "blah blah 'blah' blah blah"
It worked.

Weird.
Joost Verburg#edited
The Modern UI gets that value without the quotes. Because it has might contain spaces, it adds "" around it.

Example: "${VALUE}"

I'll update the Modern UI to use ` (that's not ') instead of ".
RIV@NVX#
Originally posted by Joost Verburg
The Modern UI gets that value without the quotes. Because it has might contain spaces, it adds "" around it.

Example: "${VALUE}"

I'll update the Modern UI to use ` (that's not ') instead of ".
Can you update to use both of them or all three?
Joost Verburg#edited
Using ` gives problems with the Japanese language.

Maybe we can find a method to escape ". I'll have a look at it tomorrow.
virtlink#
Please tell me if I'm wrong, but in some languages they use << instead of " e.g.
<<Nullsoft>>

<< is supposed to be one character.
virtlink#
Or, like in C++, like this:

"And he said /"Hello there!/""

with a /" before the " when it is a 'real' character.
Guest#
Originally posted by virtlink
Please tell me if I'm wrong, but in some languages they use << instead of " e.g.
<<Nullsoft>>

<< is supposed to be one character.
It's « Nullsoft » 🙂