Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Multiple sections with an installer (http://forums.winamp.com/showthread.php?t=251382)

OdessaCubbage 18th July 2006 10:57

Multiple sections with an installer
 
I have a program with two versions (2 different languages)

I like that when I select a language (for example english) install first applicattion and if I select another language different of english I want that install seconf version of program

I try to modify script this
!ifdef LANG_FRENCH
Section "a" SEC01
*** install section 1 ****
SectionEnd
!else
Section "a" SEC01
****install section2****
SectionEnd
!endif


What can I do to obtain this?

Thanks

Afrow UK 18th July 2006 14:38

!ifdef is a compile-time instruction.

Check the $LANGUAGE variable and compare it to ${LANG_FRENCH}.
If you're installing from the language selection, then surely you don't need the Components page? If you're not having a Components page then you'll only need one Section and in that Section you can use LogicLib ${If}...${Else}...${EndIf} to install the required files.

-Stu

OdessaCubbage 18th July 2006 15:03

OK, But I have a problem and is when I try to put ${If},

for example:

${If} $LANGUAGE == $LANG_FRENCH
---------------
${else}
--------------
${endif}


I always obtain error in line
${If} $LANGUAGE == $LANG_FRENCH

message error is Ivanlid Command ${If}

What Can I do?


Thanks

OdessaCubbage 18th July 2006 15:22

solved, I have put if into section


All times are GMT. The time now is 05:58.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.