Archive: Leave function with InstFiles page


Leave function with InstFiles page
Hi,

I tried to use the custom function MUI_PAGE_CUSTOMFUNCTION_LEAVE with MUI_UNPAGE_INSTFILES page, but have trouble, it works like MUI_PAGE_CUSTOMFUNCTION_SHOW function (not like leave). When I use it in any other page, it works fine. NSIS version 2.0.

Any idea?


Works fine for me. Try upgrading to NSIS 2.03. If you're still having problem with it, attach the script.


The problem persist. I'm using the following code:

!define MUI_FINISHPAGE_NOAUTOCLOSE
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE OnLeave
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

;--------------------------------
Function OnLeave
...
FunctionEnd

The function OnLeave is called but not in the end of dialog, it called immediately after creating.
How to solve this?


Still works fine for me. Attach a complete example.