Archive: Code on leave functions


Code on leave functions
Hello everybody.
Is it possibile to put a code on the leave function of a standart MUI page ?
I need ,for example, to show to license page in case JRE is not installed on the system and my script will install it.
And I want to display the second license page only in case JRE is not found.

Also, I had to use nsis LicenseBkColor for the second license page instead of MUI_LICENSEPAGE_BGCOLOR because you cannot define that two times. I'm not sure this is a bug or a feature


!define MUI_LICENSEPAGE_RADIOBUTTONS
!define MUI_LICENSEPAGE_BGCOLOR /grey

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "MyLicense.txt"

!define MUI_LICENSEPAGE_RADIOBUTTONS
LicenseBkColor /grey
!define MUI_PAGE_HEADER_TEXT "SUN License"

!insertmacro MUI_PAGE_LICENSE "SunLicense.txt"


Thanks,

Cristian

MUI_LICENSEPAGE_BGCOLOR is an interface setting that applies to all pages.

Define a leave function using MUI_PAGE_CUSTOMFUNCTION_LEAVE.


Thanks, Joost!
I should have read

Page Custom Functions
These defines should be set before inserting a page macro.
in the MUI readme file.

Cristian