![]() |
SectionIsSelected, unknown variable
Hello
I try to use the "SectionIsSelected" macro from the logiclib.nsh, but it seems not to work with Sections that appear below the IF function. In my example the MessageBox "g1o2_unselected" never appear. The compiler returns the warning: unknown variable/constant "{g1o2}" detected, ignoring (macro:_SectionFlagIsSet:2) So it appears that this IF only work when it is bellow the dependent section. Is this a limitation of the SectionIsSelected macro? Is there a workaround? Any help is appreciated HTML Code:
!include "Sections.nsh" |
Where you have ${g1o2}, g1o2 has not yet been defined. You will either have to define it yourself before or just substitute it with the value it would end up having (the section index or 1 in this case).
Stu |
I tried something similar, but this doesn't work also.
When i set the define above the sections Quote:
Quote:
Quote:
|
If you're going to define it yourself, you have to remove the token from the Section line.
Stu |
| All times are GMT. The time now is 17:40. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.