Archive: I want a section to be unselected only for one of the languages


I want a section to be unselected only for one of the languages
Hi,

I have an installer with two languages, English and Spanish.

There is a section called "Spanish help file" that I want to be unselected by default when choosing English or selected by default when choosing Spanish at the beginning.

With "unselected" I mean the same function as "Section /o" command.

I've made the section descriptions with "LangString" command, but the /o parameter can't be included into the string.

I've also tried with an If function and "SectionSetFlags", but I'm a little newbie and I haven't managed to make it.

I'm learning a lot with this forum and all the NSIS documentation.

Thanks,

Pocero


SetSectionFlags is the way to go. Sections.nsh wraps that in a nice macro called UnselectSection. Simply use it if the selected language is Spanish.


Thanks, it works very well.

I've used the UnselectSection macro with an If sentence to make it work depending on the language, placed into .onInit function.