- NSIS Discussion
- Modern User Interface 1.6
Archive: Modern User Interface 1.6
Joost Verburg
15th November 2002 19:38 UTC
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! :D
http://nsis.sourceforge.net/modernui-1.png
http://nsis.sourceforge.net/modernui-2.png
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:
http://forums.winamp.com/showthread.php?threadid=108831
Note that also existing strings have been updated.
Thanks ;)
RIV@NVX
16th November 2002 15:14 UTC
Very nice! You should have called it Modern UI 2.0 :)
R@m00n
16th November 2002 15:47 UTC
Bug:
Caption of the button in finish dialog is always "Finish"
kichik
16th November 2002 15:52 UTC
Some language files don't have this string yet. German is one of them.
R@m00n
16th November 2002 16:55 UTC
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
16th November 2002 17:11 UTC
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
16th November 2002 18:40 UTC
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
16th November 2002 21:34 UTC
Thanks for your bugreports. Fixed 'em all :D
You don't even have to insert the init macro anymore, the Modern UI does it for you.
R@m00n
17th November 2002 08:21 UTC
It works now.
Thanks.
NSIS 2 is great. Easy to use.
Keep on the track.
mikem4600
17th November 2002 17:46 UTC
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
17th November 2002 18:01 UTC
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
18th November 2002 02:44 UTC
Maybe its just me, but none of the Modern UI examples work (current cvs). They all compile but when executed nothing is shown.
Sunjammer
18th November 2002 12:37 UTC
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
18th November 2002 12:58 UTC
All ok here.
P.S:
StartMenu.nsi and WelcomeFinish.nsi are always missed.
Please add them into the makensis.nsi. :)
Joost Verburg
18th November 2002 13:40 UTC
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.
kichik
18th November 2002 14:20 UTC
Sources uploaded.
RIV@NVX
18th November 2002 19:08 UTC
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
18th November 2002 19:25 UTC
Have a look at the Readme :D
Example:
!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog"
!insertmacro MUI_LANGUAGE "English"
RIV@NVX
19th November 2002 13:03 UTC
Originally posted by Joost Verburg
Have a look at the Readme :D
Example:
!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog"
!insertmacro MUI_LANGUAGE "English"
I will try again.
RIV@NVX
19th November 2002 14:49 UTC
OK, works now - I figured where problem was. I needed to use "" quotes instead of ''. Why? (NSIS recognizes both of them).
Joost Verburg
19th November 2002 15:48 UTC
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
20th November 2002 18:49 UTC
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
20th November 2002 19:15 UTC
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
20th November 2002 21:25 UTC
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
20th November 2002 21:35 UTC
Using ` gives problems with the Japanese language.
Maybe we can find a method to escape ". I'll have a look at it tomorrow.
virtlink
21st November 2002 11:04 UTC
Please tell me if I'm wrong, but in some languages they use << instead of " e.g.
<<Nullsoft>>
<< is supposed to be one character.
Joost Verburg
21st November 2002 11:16 UTC
Other possibilities are " \"text\" " and " ""text"" ".
virtlink
21st November 2002 11:21 UTC
Or, like in C++, like this:
"And he said /"Hello there!/""
with a /" before the " when it is a 'real' character.
Netsabes
21st November 2002 11:34 UTC
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 » :)
virtlink
21st November 2002 17:51 UTC
That's exactly what I meant. « N.I.C.E. », but I couldn't find it on my keyboard.
Joost Verburg
21st November 2002 22:12 UTC
Ready :D Use $\" to add a double quote.
kichik
21st November 2002 22:16 UTC
Of course $\' and $\` work too...
Joost Verburg
21st November 2002 22:45 UTC
Yep, but you don't need to use them in the Modern UI. The Modern UI macro's use " to separate parameters.
RIV@NVX
1st December 2002 22:02 UTC
C:\Program Files\NSIS\Contrib\Modern UI\Readme.html
There is no second image which is in HTML file, but not in directory.
Removed or should be there?
Joost Verburg
1st December 2002 22:21 UTC
That file exists on CVS but I forgot to add it to the installer. Fixed :D
virtlink
2nd December 2002 12:43 UTC
Since working with the Modern-UI is much different than working with 'normal' NSIS scripting, I suggest that you add an extra chapter to the manual about working with the Modern-UI. How to write strings (with or without `, ', ", $/", etc..), how to change the things that normally can be changed by 'standard' NSIS instructions etc..
Joost Verburg
2nd December 2002 14:23 UTC
Everything is already in the Modern UI Readme (Contrib\Modern UI\Readme.html).
virtlink
2nd December 2002 20:13 UTC
Didn't notice it before ;) .
Yathosho
8th December 2002 16:45 UTC
can i still use older versions of ModernUI, by keeping the old files?
if so, do i need any other files than WinMessages.nsh and ModernUI.nsh (will rename them of course, so they dont get overwritten)?
could there be compilation errors if i keep ModernUI 1.4?
Joost Verburg
8th December 2002 17:35 UTC
You can still use 1.4 if you keep all the files (macros, graphics, examples). Older versions are not compatble with beta 0.
But there are quite some bugs in version 1.4 which have been fixed later, so upgrading is really recommanded. You only have to make some very small changes.
Other example scripts like makensis.nsi also won't work with 1.4.