|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2007
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2007
Posts: 2
|
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|