Archive: Copy and rename file


Copy and rename file
Hello
I'm using NSIS to install a .NET application
In NSIS I can choose a language
What I want to do is to set the application language the same as the language choosed for install
My idea is to do that by using different language.config file
languageFR.config
languageEN.config
languageDE.config, etc
During the install process I will copy the needed one into the default language.config

But maybe is there better suggestion ?


Thanks for your help


Use a ${Switch} or ${If} with $LANGUAGE and extract your different files depending on the value of $LANGUAGE using File with the /oname switch.

e.g.

${If} $LANGUAGE == 1033
File /oname=language.config languageEN.config
${ElseIf} ...
...
${EndIf}

Stu