|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2009
Posts: 2
|
Hi!
Since I'm utterly stuck and haven't found anything that applies, I decided to post this here in the hopes that someone might have a clue. I have created a setup using the modern ui 2. One of the first things I do in .onInit is: !insertmacro MUI_LANGDLL_DISPLAY to display a dialog in which the user can select the install language. This dialog is always displayed in English. However, I have the requirement that it be displayed in the operating system's ui language if possible, and in English otherwise. Could anyone please offer some advice? Greetings from Germany, Felix |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jun 2009
Posts: 45
|
Write an If/Else statement for the languages section which reads the registry for the default language, something like this
Function .oninit Search Registry Key Read/Parse string ${If} Registry string == sdfjlskdf !insertmacro MUI_LANGUAGE "English" ${Else} !insertmacro MUI_LANGUAGE "whatever else" ${endif} FunctionEnd Something like that. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2009
Posts: 2
|
Thank you for your reply!
I'm sorry that I may not have provided enough detail about my problem. There is a macro called MUI_LANGDLL_DISPLAY which displays a dialog that lets the user select the setup language. My question concerns the language of this dialog itself. I would like it to be displayed in the operating system's ui language. The language selection dialog is the first thing a user will se when running my setup. So, this dialog should greet the user in her/his own language. Greetings, FelixG |
|
|
|
|
|
#4 |
|
Member
Join Date: Oct 2009
Posts: 72
|
Have anyone found a solution for this yet? (display the message in user operating system's language for the language selection dialog). Thanks!
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2010
Posts: 4
|
It's simple. Put this code on script:
and define language strings:code: code: |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|