Archive: Modern User Interface 1.4


Modern User Interface 1.4
  Modern UI 1.4 has been released!

It uses no global variables anymore, even if you are using Install Options! So you can use all variables for your own code.

Also, the macro's are smaller because of the new page system.

Basic Macro System
If you were using the Basic Macro System of Modern UI 1.3 final, you only have to make a few small changes in your script:

* Remove MUI_BASICFUNCTIONS_INIT
* Rename MUI_COMPONENTPAGE to MUI_COMPONENTSPAGE
* Rename MUI_DIRSELECTPAGE to MUI_DIRECTORYPAGE

Advanced Macro System
The advanced macro system is way easier now. You can add an Install Options page by just adding one Page command and a function, see the Readme for more info.

If you were using the Advanced Macro System, you'll have to update your script to the new page system. Have a look at InstallOptions.nsi to see all the changes.

Translation
I have updated all language files to the new 1.4 format. If you want to update your language files, please download the updated files first.

If you want to contribute a new translation, have a look at "Contrib\Modern UI\Language Files" to see how you can make a Modern UI translation.

There are also some NLF language files that need to be updated (accelerator keys should be added).


hey Joost, when i selected to browse for the install directory the dialog that appears has a pretty large gap at the top and then just the directory listing, it should have a smaller gap and some text saying "Choose installation directory" or something, nothing major, just a ittle UI hack i guess, well i still get it in this version, if it is fix i guess i need to try a clean install. thanks

luke.



That's not what he is talking about, look again ;)
I will try to fix it tomorrow.
What you are talking about, Joost, is impossible...


Because the Modern UI should have a different text on the NSIS page and the Browse for Folder dialog, DirText should have an option to use the text only on the Browse for Folder dialog.

I will also make some changes to the Advanced Macro System when I have time for it (macro's for the default Page functions).


Macro System Update

I made a lot of updates to the macro system.

It's now possible to use the basic macro's even if you are using custom pages. I also renames some macro's.

Have a look at the examples!


Originally posted by muz
hey Joost, when i selected to browse for the install directory the dialog that appears has a pretty large gap at the top and then just the directory listing, it should have a smaller gap and some text saying "Choose installation directory" or something, nothing major, just a ittle UI hack i guess, well i still get it in this version, if it is fix i guess i need to try a clean install. thanks
luke.
Fixed :D

That ModernUI thing ROLLZ.
When you started developing it I didn't expect that it will grow into something this easy and efficient.

I just downloaded today's version (it's the reason why am I posting this) - with just one macro for both uninstall and install. That constant reducing of number of macros made it excellent.

You, kichik and the others have done fantatstic job with that NSIS 2.0 development. Congratulations! Keep up the good work!


Readme error?
  Yep, I think that the new ModernUI is terrific! Great job people!

BTW, I'm not sure if this has been posted before, but I found an error in the ModernUI readme.html while I was converting my scripts to the new macro format.

At the "Define which elements you are using" part, it says
...!define MUI_UNINSTALL ;Uninstaller
but the instruction that actually works is !define MUI_UNINSTALLER (it's in basic.nsi).

It took me about an hour trying to figure out what's wrong with my script until I finally got it...


Re: Readme error?
 

Originally posted by mikem4600
Yep, I think that the new ModernUI is terrific! Great job people!

BTW, I'm not sure if this has been posted before, but I found an error in the ModernUI readme.html while I was converting my scripts to the new macro format.

At the "Define which elements you are using" part, it says
...!define MUI_UNINSTALL ;Uninstaller
but the instruction that actually works is !define MUI_UNINSTALL
ER (it's in basic.nsi).

It took me about an hour trying to figure out what's wrong with my script until I finally got it...
Sorry ;) I'll fix it :)

I think the MUI_SYSTEM macro should check MUI_UNINSTALLER defined
or not so it won't produce warnings if I don't define it.

This is what I do now:


macro MUI_SYSTEM


!verbose 3

!insertmacro MUI_INTERFACE
!insertmacro MUI_BASIC
!ifdef MUI_UNINSTALLER
!insertmacro MUI_UNBASIC
!endif

!verbose 4

>!macroend
>
p.s:development snapshot(Nov. 05)

MUI_UNBASIC itself checks this define (latest CVS version):


!macro MUI_UNBASIC

!verbose 3

!ifdef MUI_UNINSTALLER

!insertmacro MUI_UNPAGECOMMANDS
!insertmacro MUI_UNFUNCTIONS_PAGES
!insertmacro MUI_UNFUNCTIONS_GUIINIT

!endif

!verbose 4

!macroend