Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ${LANGUAGE} if-structure (http://forums.winamp.com/showthread.php?t=267027)

Striker53 3rd March 2007 14:32

${LANGUAGE} if-structure
 
Hi guys,

what should I do to get this if-structure working?

code:
!If ${LANGUAGE} == 1031


I want to install a specific file on different languages.

kichik 3rd March 2007 14:39

$LANGUAGE is a variable and not a define and it's runtime and not compile time. Use $LANGUAGE instead of ${LANGUAGE} and ${If} or StrCmp instead of !if.
code:
!include LogicLib.nsh
#...
${If} $LANGUAGE == ${LANG_GERMAN}
#...
${EndIf}


Striker53 3rd March 2007 14:47

Thanks. But now I get these errors:

Error: command StrCmp not valid outside section or function
Error in macro _== on macroline 1
Error in macro _If on macroline 8

kichik 3rd March 2007 14:53

As the error says, the code must be located in a section or a function.

Striker53 3rd March 2007 15:00

Oh, yes. I´m a idiot. Thanks for quickly support!


All times are GMT. The time now is 04:14.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.