Skip to content
⌘ NSIS Forum Archive

SectionGetText Bug???

3 posts

aemik#

SectionGetText Bug???

Hello,

I use this:

Function .onInit
  SectionGetText ${Sec2} $0
  MessageBox MB_OK $0
Functionend
Section "!Section1" Sec1
  SectionIn RO
  ...  
SectionEnd
Section "Section2" Sec2
SectionEnd 
When i start this script and want to get the text of Sec2 I get "Section1".
I dont know where my fault is.


Help please
Thanks
aemik
kichik#
Sec2 is undefined at that specific point of the script. Move .onInit below the section definition.