Old 29th March 2011, 19:46   #1
NSISNUB
Junior Member
 
Join Date: Aug 2010
Posts: 44
Custom Pages Question

Hi I thought this would work


Page custom CustomPre CustomPage CustomPageLeave

Function CustomPre

${If} condition
Abort
${EndIf}
FunctionEnd


Function CustomPage

FunctionEnd


FunctionCustomPageLeave

FunctionEnd



The desired behaviour is if that condition is true then I don't want the CustomPage to be shown and the CustomPageLeave function not to be called.


Otherwise I want to the CustomPage to be shown and the CustomPageLeave function to be called.


The behaviour I am getting is the CustomPage is never shown, and yes I am hitting inside the if and outside the if depending on my condition. What do I need to do for this to work?


thanks,
NSISNUB is offline   Reply With Quote
Old 29th March 2011, 19:59   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
If you read the docs on Page custom, you will find there is no Pre function for custom pages. Calling Abort from the page's creation function should have the same affect (to skip the page). If it does not, just jump over any plug-in calls.

Stu
Afrow UK 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