Archive: What happen to MUI_CUSTOMFUNCTION_COMPONENTS_SHOW


What happen to MUI_CUSTOMFUNCTION_COMPONENTS_SHOW
So...how can I use:
!define MUI_CUSTOMFUNCTION_COMPONENTS_SHOW "thefunc"
with new CVS?


Replaced with:

These defines should be set before inserting a page macro.

MUI_PAGE_CUSTOMFUNCTION_PRE
MUI_PAGE_CUSTOMFUNCTION_SHOW
MUI_PAGE_CUSTOMFUNCTION_LEAVE

ok, something like this:


!define MUI_PAGE_CUSTOMFUNCTION_PRE "DirColor"
!insertmacro MUI_PAGE_DIRECTORY

Can someone guide, please :rolleyes:?


Oh sorry, didn't think it was a question. Yes, that's the way.


Thanks KichiK.. :)
but with this:


!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_CHECKBOX
!insertmacro MUI_PAGE_LICENSE "${ResDir}\licesp.rtf"
!define MUI_PAGE_CUSTOMFUNCTION_PRE "DirColor"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS

I got this

!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!define: "MUI_LICENSEPAGE_CHECKBOX"=""
!insertmacro: MUI_PAGE_LICENSE
!insertmacro: end of MUI_PAGE_LICENSE
!define: "MUI_PAGE_CUSTOMFUNCTION_PRE"="DirColor"
!insertmacro: MUI_PAGE_DIRECTORY
!undef: "DirColor" not defined!
Error in macro MUI_FUNCTION_CUSTOM on macroline 4
Error in macro MUI_FUNCTION_DIRECTORYPAGE on macroline 3
Error in macro MUI_PAGE_DIRECTORY on macroline 27
!if[n]def: open at EOF - need !endif
Error in script "C:\joelito\NsisProI_beta.nsi" on line 51 -- aborting creation process

Using the latest CVS build, I have a similar issue with MUI_CUSTOMFUNCTION_STARTMENU_PRE

Here's the code:


!insertmacro MUI_PAGE_LICENSE "../license.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_CUSTOMFUNCTION_STARTMENU_PRE nada
!insertmacro MUI_PAGE_STARTMENU
!insertmacro MUI_PAGE_INSTFILES

Function nada
Abort
FunctionEnd
And I get:

1 warning:
install function "nada" not referenced - zeroing code (432-434) out
and the start menu shows up?

Use MUI_PAGE_CUSTOMFUNCTION_PRE (no other name). You don't have to undefine.


Yeah tried that and got the same error as the one Lobo Lunar got (hence my post here):

;Here the adjusted code
!define MUI_PAGE_CUSTOMFUNCTION_PRE "nada"
!insertmacro MUI_PAGE_STARTMENU
And here's the error:

!define: "MUI_PAGE_CUSTOMFUNCTION_PRE"="nada"
!insertmacro: MUI_PAGE_STARTMENU
!undef: "nada" not defined!
Error in macro MUI_FUNCTION_CUSTOM on macroline 4
Error in macro MUI_FUNCTION_STARTMENUPAGE on macroline 4
Error in macro MUI_PAGE_STARTMENU on macroline 26
!if[n]def: open at EOF - need !endif
Tried "nada" with and without quotes, below and above MUI inserts and in a include function file that I reference, still no go on _pre. TIA.

Thanks. Fixed :)


Thanks... is fixed :D