Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Section: min one selected (http://forums.winamp.com/showthread.php?t=186998)

MP_chefkoch 18th July 2004 19:28

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

VegetaSan 19th July 2004 00:11

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.

Yathosho 19th July 2004 15:45

try this example

MP_chefkoch 20th July 2004 08:51

@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

ppppppp 22nd July 2004 15:26

I have the same question, but nobody can help me!

VegetaSan 22nd July 2004 15:55

oops. I switched them. sorry :D

code:

Subsection "Languages"

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

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

SubsectionEnd


Yathosho 22nd July 2004 16:37

i posted the one-section example not that because you can adapt it, but because you can customize it easily to fit your needs.


All times are GMT. The time now is 17:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.