Archive: CUSTOMFUNCTION_PRE not working ?!?


CUSTOMFUNCTION_PRE not working ?!?
Hello,

I added the following lines to my NSIS script:

...

!define MUI_PAGE_CUSTOMFUNCTION_PRE preInstall
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES


!define MUI_UNPAGE_CUSTOMFUNCTION_PRE preUninstall
!insertmacro MUI_UNPAGE_DIRECTORY
!insertmacro MUI_UNPAGE_INSTFILES

...

When compiling, I get:
1 warning:
install function "preUninstall" not referenced - zeroing code (59-61) out

Why doesn't it work with the UNPAGE_CUSTOMFUNCTION ?
It works with PAGE_CUSTOMFUNCTION ...

(The function exists, I just left it out for readability reasons ...)


Thanks


where's your problem?
!define MUI_PAGE_CUSTOMFUNCTION is independent from installer/uninstaller. just use it for both.


Oops

forgot the un. before my function name.

You're right about the PAGE / UNPAGE, I pasted the wrong code, this was a tryout when searching for a solution for my problem ... :rolleyes: