Archive: Section_Index from string


Section_Index from string
Hi list,
I am having troubles setting sectionflags from a section_index that is a string with a space.

If i have a section whos index has a space this causes a compile error eg:

Section "a section" a section
SectionEnd

so i enclose the section with inverted comma's such:
Section "a section" 'a section'
SectionEnd

Which compiles fine, but setting the flags on this section do not work, eg:

SectionSetFlags 'a section' 16

Any Hints on how to set/get the correct section index from a string with a space?

many thanks
vsleepy


In SectionSetFlags you don't use the name on its own. The name is used to define a constant with the value of the section index. Use "${a section}" to get that value. For an example, see Examples\one-section.nsi.