Skip to content
⌘ NSIS Forum Archive

copy different files for different languages

9 posts

joshhh#

copy different files for different languages

How can i copy different files for different languages in multilang installer?
kichik#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
joshhh#
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?
joshhh#
I use File /r because i need to place configs.rc to config dir.
Core files contains themes\dist.ru\config\ dir.
Joost Verburg#
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: