Skip to content
⌘ NSIS Forum Archive

find uset what section selected

3 posts

r2du-soft#

find uset what section selected

hi , this is a sample my program code:



section "myapp"
SectionIn RO;for lock section
section end

section "opton1" op1
;this section is free
section end

section "opton2" op2
;this section is free
section end


im how can check in section "myapp" for order that my user selected section "opton1" op1 or selected section "opton2" op2 ?
i just want this check Be done in section "myapp".



i need something like:

section "myapp"
SectionIn RO;for lock section

if user selected op1
MessageBox MB_OK "user selected section op1"
end if

if user selected op2
MessageBox MB_OK "user selected section op2"
end if



section end


section "opton1" op1
;this section is free
section end

section "opton2" op2
;this section is free
section end

JasonFriday13#
You have a components page right? (Page Components). If a section is unticked then that section isn't executed, it's that simple. You don't need to check it from other sections. Try this a few times:
Name "section test"

Page Components
Page InstFiles

Section "Option 1"
MessageBox MB_OK "Section: Option 1"
SectionEnd

Section "Option 2"
MessageBox MB_OK "Section: Option 2"
SectionEnd
r2du-soft#
Originally Posted by JasonFriday13 View Post
You have a components page right? (Page Components). If a section is unticked then that section isn't executed, it's that simple. You don't need to check it from other sections. Try this a few times:

thanks
i need check section "Option 1" and and check "Option 2" in section "myapp"!