aeshkar
11th October 2003 17:21 UTC
Mui_function_licensepage
Hi all,
I'm new at using NSIS 2.0B4. I got through some of the basics but I'm stuck on the following.
!insertmacro MUI_FUNCTION_LICENSEPAGE myPreFunc myShowFunc mtLeaveFunc
!insertmacro MUI_PAGE_LICENSE "${SOURCE_DIR}\License.txt"
Function myPreFunc
; blablabla
FunctinEnd
Function mtShowFunc
; blablabla
FunctinEnd
Function myLeaveFunc
; blablabla
FunctinEnd
I get a compiler error saying the the functions already exist. What am I missing.
Thanks in advance.
MathiasSimmack
11th October 2003 17:49 UTC
You should define these symbols before using the license page macro
!define MUI_PAGE_CUSTOMFUNCTION_PRE "myPreFunc"
!define MUI_PAGE_CUSTOMFUNCTION_SHOW "myShowFunc"
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE "myLeaveFunc"
The modern UI readme knows more about. ;)
Mathias.
aeshkar
12th October 2003 01:30 UTC
Your suggestion:
!define MUI_PAGE_CUSTOMFUNCTION_PRE "myPreFunc"
!define MUI_PAGE_CUSTOMFUNCTION_SHOW "myShowFunc"
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE "myLeaveFunc"
According to modern UI readme, these are for Custom Pages, I need this for the license and directory pages. Anyway I tried it this and the compiler still says Error: Function named "myPreFunc" already exists.
Any other ideas?
aeshkar
12th October 2003 02:34 UTC
Never mind, I figured it out. I still had
!insertmacro MUI_FUNCTION_LICENSEPAGE myPreFunc myShowFunc mtLeaveFunc
in my code, and when I removed it, your suggestion worked.
Thanks