Archive: Determine Windows language


Determine Windows language
My installer should install MS SQL Server. I noticed, that English SQL Server fails to install on non-English Windows. I have to install German SQL Server on German Windows.

Thus I need a function to determine Windows language. Is there any built-in NSIS function or a plugin?

Or, maybe, better way to install SQL Server, with regards to Windows language?


Looks like that I do not need any functions and should just read registry like

ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage" 409