Old 11th October 2003, 16:21   #1
aeshkar
Junior Member
 
Join Date: Oct 2003
Location: Los Gatos, CA
Posts: 16
Question 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.
aeshkar is offline   Reply With Quote
Old 11th October 2003, 16:49   #2
MathiasSimmack
Junior Member
 
Join Date: Sep 2003
Posts: 29
You should define these symbols before using the license page macro
code:
!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.
MathiasSimmack is offline   Reply With Quote
Old 12th October 2003, 00:30   #3
aeshkar
Junior Member
 
Join Date: Oct 2003
Location: Los Gatos, CA
Posts: 16
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 is offline   Reply With Quote
Old 12th October 2003, 01:34   #4
aeshkar
Junior Member
 
Join Date: Oct 2003
Location: Los Gatos, CA
Posts: 16
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
aeshkar is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump