Skip to content
⌘ NSIS Forum Archive

${LANGUAGE} if-structure

5 posts

Striker53#

${LANGUAGE} if-structure

Hi guys,

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

!If ${LANGUAGE} == 1031
I want to install a specific file on different languages.
kichik#
$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.
!include LogicLib.nsh
#...
${If} $LANGUAGE == ${LANG_GERMAN}
#...
${EndIf}
Striker53#
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