Archive: MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE no more used?


MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE no more used?
Hello,

I use a function "checkDirectory" to check if the install path has space chars or not. To do it, I use the following instruction:

!define MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE checkDirectory
!insertmacro MUI_PAGE_DIRECTORY

With the CVS version, I get this warning during script compilation:

install function "checkDirectory" not referenced - zeroing code (3044-3051) out

Any idea?

PôL.


The latest CVS version of MUI has many changes (I had to read the new MUI ReadMe file a few times before I got my scripts to work again).

The 'define' used to specify the 'leave' function has been given a new name, so change your script to read

!define MUI_PAGE_CUSTOMFUNCTION_LEAVE "checkDirectory"
!insertmacro MUI_PAGE_DIRECTORY

It run now. Thanks a lot :-)