This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Language
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 13, 2010
10:54 AM
Retrieve Setup Language in InstallScript
Hi
I have an InstallShield (Basic MSI) project in which we offer a few setup languages.
I want to be able to record, in the registry, the setup language that the user had chosen when (s)he ran setup.exe the first time.
Just like I record INSTALLDIR in the application's registry parameters for it to be available to the application if need be.
I did not find a corresponding variable that I could use in IS and/or in InstallScript.
I do NOT want to get the OS locale with GetSystemInfo, this I know how to do.
For instance, if the user has selected French_Canadian language during Setup and was using an US-English based OS, I want "French-Canadian" to be recorded. Actually, I will need to translate French_Canadian to the language code that my customer's app is using (using InstallScript for instance)
Thanks in advance
I have an InstallShield (Basic MSI) project in which we offer a few setup languages.
I want to be able to record, in the registry, the setup language that the user had chosen when (s)he ran setup.exe the first time.
Just like I record INSTALLDIR in the application's registry parameters for it to be available to the application if need be.
I did not find a corresponding variable that I could use in IS and/or in InstallScript.
I do NOT want to get the OS locale with GetSystemInfo, this I know how to do.
For instance, if the user has selected French_Canadian language during Setup and was using an US-English based OS, I want "French-Canadian" to be recorded. Actually, I will need to translate French_Canadian to the language code that my customer's app is using (using InstallScript for instance)
Thanks in advance
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 13, 2010
12:10 PM
Use the SELECTED_LANGUAGE variable and compare it with the InstallScript Language IDs (e.g. ISLANG_ENGLISH). From there I'm sure you can get the language code also...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 18, 2010
04:14 AM
You can use SELECTED_LANGUAGE and retrieve using Sprintf...............
Sprintf(SelectedLangID, "%d", SELECTED_LANGUAGE);
cheers!!
Sprintf(SelectedLangID, "%d", SELECTED_LANGUAGE);
cheers!!