Skip to content
⌘ NSIS Forum Archive

[NSIS2]different files in other languages

3 posts

MRwimlex#

[NSIS2]different files in other languages

When using the supplied multilanguage.nsi i ran into some troubles.

I want to add other files to an install if an other language is selected. I tried to create a constant with langstring
LangString File_Copy_settings.ini ${LANG_ENGLISH} "C:\Documents .\....\languages\english\settings.ini"
and next use "File" with with the variable File_Copy. but when using FIle $File_Copy. it doesn't work.

Does some one know what to do.. how to fix this quick? I dont want to use InstType and SectionIn

Thank You

Arnoud
Joost Verburg#
The File command is not a run-time command (the compiler has to know which files should be added), so you should use another method:


StrCmp $LANGUAGE ${LANG_ENGLISH} "" +2
File "English"
StrCmp $LANGUAGE ${LANG_GERMAN} "" +2
File "German"
etc.

Btw, you have to use $(name) for a LangString.