Archive: select language in command line


select language in command line
Hi,

I have a setup file which was created using NSIS.
I have the sources\nsi files for it, but I cannot use them to create a new setup file.
So it is like I just have the final setup.exe.

On installation, the 1st dialog which pops up,
is the "installer language", which allows to choose a language.

I would like to know if it possible to use a command line, or some other way, so the language will be selected automatically and this dialog will not show.

(Since I have the nsi file, I can see which languages ara available and names of variables)

Thanks for your help.


try this, use 1033 (english) or 1031 (german) as parameter. you can easily tweak it for your needs.


if you want to use multiple parameters or simply prefer a more elegant syntax (/lang=1033 or /lang=EN), you might wanna use this get parameter function instead


nsisuser22 said that he cannot rebuild the setup (for some reason) so the easiest solution, if possible, would be to write a wrapper setup in NSIS which set the same registry value set with:

MUI_LANGDLL_REGISTRY_ROOT root
MUI_LANGDLL_REGISTRY_KEY key
MUI_LANGDLL_REGISTRY_VALUENAME value_name

(in the original setup) before extracting and running the original setup exe. If these were not set in the original setup script then you'd need to rebuild it indefinitely.

Stu


Hi,

I don't see any of the "MUI_LANGDLL_..." in the original nsi file.
So I guess I cannot do anything about it.
(I cannot build the setup because I dont want and cant distribute by myself).

Thanks for your help.


is LangDLL included with NSIS by default? what's the error message?