I need to know the name of a section, having the section_index or section_text.
I've look in the documentation but a function like 'SectionGetName section_index user_var(output)' doesn't exist.
Does it exist a way to do waht I want?
SectionGetName or something like that
5 posts
What do you mean by section name? There is only the text and the index. If you mean the 2nd parameter, i.e. Section "My section" SecId, then SecId is just a constant containing the section index at compile time.
It's the same as doing !define SecId #.
Stu
It's the same as doing !define SecId #.
Stu
Um, sorry, yes I mean the SecId. I'm using the 'Memento.nsh' header file (and I'm a little confused), that writes each entry section in the registry in this way 'MementoSection_SecId'.
In my installer I have one '.onSelChange' method, and I need to recover in it the SecId of the checbox that was checked/unchecked, in order to read the corresponding 'MementoSection_SecId' (I want to make something like a three states checkboxes in running time just for your information).
In my installer I have one '.onSelChange' method, and I need to recover in it the SecId of the checbox that was checked/unchecked, in order to read the corresponding 'MementoSection_SecId' (I want to make something like a three states checkboxes in running time just for your information).
They should have done it 'MementoSection_#' instead. That would be more helpful. You'll just have to put an ${If} in there for each section index to read from the corresponding identifier.
Stu
Stu
Ok, thanks for your help, I think using the SecId to write in the registry is not the better way too, I'll try to make that you say or make a custom Memento.nsh.