Archive: Problems with switch


Problems with switch
Hello
hopefully somebody can help me

in the following code:

Function SetLanguageDependedKey
${switch} $LANGUAGE
${case} ${LANG_GERMAN}
WriteRegDWORD HKEY_CURRENT_USER "${REGKEY}" "lang" 0x1
WriteRegDWORD HKEY_CURRENT_USER "${REGKEY}" "faml" 0x1
Call InstallReg_GCFPart_German
${Break}
${default} ...
WriteRegDWORD HKEY_CURRENT_USER "${REGKEY}" "lang" 0x0
WriteRegDWORD HKEY_CURRENT_USER "${REGKEY}" "faml" 0x0
${Break}
${EndSwitch}
FunctionEnd


I get the error:
warning: unknown variable/constant "{LANG_GERMAN}" detected, ignoring (macro:_==:1)


What I'm doing wrong?
This function is in a .nsh file, if i put it in my main file
then there is no error:confused:
what i'm doing wrong?

Hi
I already found out what the problem was

i included the .nsh file bevor defining the language
:-(

now it works