Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th April 2012, 11:59   #1
ehsansad
Junior Member
 
Join Date: Apr 2012
Posts: 20
How to skip custom pages

Hello,

I want to know how to skip some, round 4, custom pages based on the selected options in the MUI_PAGE_COMPONENTS page.

regards,
ehsan
ehsansad is offline   Reply With Quote
Old 17th April 2012, 12:29   #2
ehsansad
Junior Member
 
Join Date: Apr 2012
Posts: 20
Found it,

By using the
Function .onSelChange
SectionGetFlags ${Section1} $R0
IntOp $R0 $R0 & ${SF_SELECTED}
${If} $R0 == ${SF_SELECTED}
Strcpy $skipPage1 "No"
Strcpy $skipPage2 "No"
${ElseIf} $R0 != ${SF_SELECTED}
Strcpy $skipPage1 "Yes"
Strcpy $skipPage2 "Yes"
${EndIf}

FunctionEnd

and in the function call back of the page I can check the skipPagex var and call Abort.

got the idea from
http://stackoverflow.com/questions/1...ar-custom-page
ehsansad is offline   Reply With Quote
Old 17th April 2012, 12:31   #3
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
function custompage1
${If} ${SectionIsSelected} ${Section1}
;call nsDialogs to create and show your function
${EndIf}
functionend
MSG is offline   Reply With Quote
Reply
Go Back   Winamp 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