Old 18th July 2004, 19:28   #1
MP_chefkoch
Junior Member
 
Join Date: Jul 2004
Posts: 7
Section: min one selected

hi

can anyone tell me an example syntax, for my problem.
I have a SubSection calling 'language' and some setions for example 'German' and 'English'.

Now minimum is one selected Section, but it could be also 2 selected sections.

thx
hanshans
MP_chefkoch is offline   Reply With Quote
Old 19th July 2004, 00:11   #2
VegetaSan
Senior Member
 
VegetaSan's Avatar
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 260
code:

Section "language"

Subsection "German"
Setoutpath "$PROGRAMFILES"
file "C:\german.lang"
SubsectionEnd

Subsection "English"
Setoutpath "$PROGRAMFILES"
file "C:\english.lang"
SubsectionEnd

SectionEnd



this should work.
VegetaSan is offline   Reply With Quote
Old 19th July 2004, 15:45   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
try this example
Yathosho is offline   Reply With Quote
Old 20th July 2004, 08:51   #4
MP_chefkoch
Junior Member
 
Join Date: Jul 2004
Posts: 7
@Vegeta San
Quote:
Error: command SubSection not valid in section
This tells me NSIS, i know the error and i have the corrected version, but this is not what i need

@yathosho
i know this example but there i have only one selected -> then i get german OR english,
but i need german AND english

but although thanks for your help guys

These are the possibilities, I want to have to enable:
german AND english
ONLY german
ONLY english

BUT NOT all disabled.

I need more help.
hanshans
MP_chefkoch is offline   Reply With Quote
Old 22nd July 2004, 15:26   #5
ppppppp
Junior Member
 
Join Date: Jul 2004
Posts: 15
I have the same question, but nobody can help me!
ppppppp is offline   Reply With Quote
Old 22nd July 2004, 15:55   #6
VegetaSan
Senior Member
 
VegetaSan's Avatar
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 260
oops. I switched them. sorry

code:

Subsection "Languages"

Section "German"
Setoutpath "$PROGRAMFILES"
file "C:\german.lang"
SectionEnd

Section "English"
Setoutpath "$PROGRAMFILES"
file "C:\english.lang"
SectionEnd

SubsectionEnd

VegetaSan is offline   Reply With Quote
Old 22nd July 2004, 16:37   #7
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
i posted the one-section example not that because you can adapt it, but because you can customize it easily to fit your needs.
Yathosho 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