I use this code to copy language file
;Core files
File /r "1\*.*"
;Language files
StrCmp $LANGUAGE ${LANG_ENGLISH} "" +3
File /r "3\*.*"
StrCmp $LANGUAGE ${LANG_RUSSIAN} "" +3
File /r "2\*.*"
StrCmp $LANGUAGE ${LANG_GERMAN} "" +3
File /r "4\*.*"
but it work only for english and russian
for english
"3\themes\dist.ru\config\configs.rc"
for russian
"2\themes\dist.ru\config\configs.rc"
for german
"4\themes\dist.ru\config\configs.rc"
german file installing to "$INSTDIR\dist.ru\config\configs.rc"
What i do wrong?
I'm saying that you should not use a relative jump, using File /r is okay.
Instead of:
StrCmp $LANGUAGE ${LANG_ENGLISH} "" +3
File /r "3\*.*"
use:
StrCmp $LANGUAGE ${LANG_ENGLISH} "" english_ready
File /r "3\*.*"
english_ready: