actualsolution
10th December 2004 19:38 UTC
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?
kichik
10th December 2004 20:03 UTC
Works fine for me. Try upgrading to NSIS 2.03. If you're still having problem with it, attach the script.
actualsolution
12th December 2004 05:40 UTC
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?
kichik
14th December 2004 18:08 UTC
Still works fine for me. Attach a complete example.