Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th October 2007, 18:50   #1
Pocero
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
Pocero is offline   Reply With Quote
Old 16th October 2007, 21:42   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 17th October 2007, 21:23   #3
Pocero
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.
Pocero is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump