Archive: Why would a !define be ignored?


Why would a !define be ignored?
What would be the reasons that a

!define
would be ignored?

I want to

!define MUI_COMPONENTSPAGE_SMALLDESC


in my installer and I have placed it above lines like the following:


# Define the "subtext" for the page that follows.
!define MUI_PAGE_HEADER_SUBTEXT "<<Text defined by me>>"
!define MUI_COMPONENTSPAGE_TEXT_TOP "<<Text defined by me>>"
!define MUI_COMPONENTSPAGE_SMALLDESC
!insertmacro MUI_PAGE_COMPONENTS


but nothing seems to happend.

Any thoughts?

However, it seems to work in small test installers I have created :(

Works fine for me. With it you get the description box under the tree view control rather than to the right.

Stu


As I said originially...
... it sometimes works for me (in small example/test installers), but not in the main installer I am working on :confused: :(


Try defining it at the top of the main file(.nsi file). Could you paste the rest of the code above these definitions? I am suspecting some other definition might be overriding this.


Still no luck
I have tried moving


!define MUI_COMPONENTSPAGE_SMALLDESC


around in my script, but it doesn't seem to make any difference :(

MUI_COMPONENTSPAGE_SMALLDESC is an interface setting and must therefore be set before inserting any page macro.

Interface settings should be set before inserting page macros. Page interface settings apply to all pages of a certain type.

Thanks for the reminder Kichik
It works now :D

I had to put that define immediately above the first page macro.