Archive: Modern UI 1.65


Modern UI 1.65
I have just uploaded a new version of the Modern UI.

The main difference is that there is no difference custom page system anymore, you just insert page macro's and can insert custom pages between them:

!insertmacro MUI_PAGE_LICENSE
Page custom CustomPageA
!insertmacro MUI_PAGE_COMPONENTS
Page custom CustomPageB
!insertmacro MUI_PAGE_DIRECTORY
Page custom CustomPageC
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

So you will have to make this small change in your script, but I think it's worth it :D


Now the confusion is eliminated! Because sometimes I thought that the old macros ordered pages, and got wrong pages order!


It would be nice if you could make a macro for custom pages, which included the header text in it.

e.g.
!insertmacro MUI_CUSTOM_PAGE "CustomPage" "" " - Hello!" "This is a custom page" " Yes, it really is a custom page!"

I doubt that that is possible without using up the custom page's pre function ("CustomPage").

-Stu


That's not possible. You have to use the pre function.


sounds nice to me...
And the others, like "!define MUI_LICENSEPAGE",
can be eliminated?


Yes, you only have to insert these page macro's. If you are using custom pages, just insert them between the macro's.

You don't need the defines anymore.


Problem
I have a little problem with the new version of Modern UI.

I had the installer show 2 directory pages using this code:


!insertmacro MUI_PAGECOMMAND_DIRECTORY
!insertmacro MUI_PAGECOMMAND_DIRECTORY

In the new version I had to modify the code:

!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_DIRECTORY

However when compiling it shows this error:

!define: "MUI_DIRECTORYPAGE" already defined!
Error in macro MUI_PAGE_DIRECTORY on macroline 6

Could anyone explain how I could get that function back?

Vytautas

I've figured out a (temporary) solution, but if there is a nicer way of doing this I would appreciate it.


!insertmacro MUI_PAGE_DIRECTORY
Page directory mui.DirectoryPre mui.DirectoryShow mui.DirectoryLeave "MUI_INSTALLBUTTON_DIRECTORY"

Vytautas

Problem with MUI_LICENSEBKCOLOR
There's a slight problem with MUI_LICENSEBKCOLOR which is set to /windows by default.
It is windows standard, that a read-only textbox is greyed-out.
But if MUI_LICENSEBKCOLOR is defined to /windows, the license text background is pure white where it is supposed to be grey.
Please change it that the license text background is greyed out by default to keep ui standard conformance.


You can define MUI_LICENSEBKCOLOR to /grey to get the old behavior back. According to Joost white is the standard for licenses.


Most modern installer use a white background for the license, because that is easier to read (like MS Office etc.).

Vytautas: I'll fix that issue.


Originally posted by kichik
You can define MUI_LICENSEBKCOLOR to /grey to get the old behavior back. According to Joost white is the standard for licenses.
Thanks for pointing that out. A little bit documentation about it would be good, though

The documentation writer will be back soon.


Hi Joost,

I like the new macro system for inserting custom pages, but why did you change the names for all pages (MUI_LICENSEPAGE to MUI_PAGE _LICENSE). On the other hand, you left the old names for the defines, for example MUI_LICENSEPAGE_CHECKBOX to display a checkbox on the license page .... a little bit confusing.

Maybe it would be a good idea to name the Defines similar to the pages they belong ?

Romain


I prefer the new names for the macro's. The old macro's for pages (custom page commands) also had a name like these.

I think the current define names are OK, MUI_PAGE_NAME is for a page, MUI_OBJECT_SETTING for a define.


I think the current define names are OK, MUI_PAGE_NAME is for a page, MUI_OBJECT_SETTING for a define. [/B]
OK, but maybe you should rename the define to something that corresponds to the page:

Why is the page called MUI_PAGE_LICENSE and the define MUI_LICENSEPAGE_CHECKBOX ... wouldn't it be more logical to use MUI_PAGELICENSE_CHECKBOX ? ... just an idea

> Modern UI 1.65
Where to dl' ?

Thx


Brummelchen just update NSIS to the newest CSV ;)

Vytautas


In that case i get erros on my actual project - i dl' it yesterday morning.

Thx.


You have to make some small changes, check the first post.