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
- :
- Country/local code in InstallScript?
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
‎Feb 15, 2009
10:45 AM
Country/local code in InstallScript?
Hi,
Does anyone know if there is a way that I can find out what the current PC local / regional country code setting is through InstallScript while running an installer?
Cheers
Rob
Does anyone know if there is a way that I can find out what the current PC local / regional country code setting is through InstallScript while running an installer?
Cheers
Rob
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2009
03:01 AM
Do you mean the 'Location' setting (Me, XP and later)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2009
05:08 AM
Holger_G wrote:
Do you mean the 'Location' setting (Me, XP and later)?
Possibly - I want to use an InstallScript that runs during installation to determine the current langauge on the PC and then install some files based on that. So, for example, if the user has their PC set to German (i.e. input, software menus, etc are in German), I want to use that in my script. I hope there is either a 2 letter code (e.g. DE) or a number (e.g. 1031) that I can find from the system and use?
Cheers
Rob
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2009
05:48 AM
SYSINFO provides some language related values like:
If you need some more specific Language or Regional option values you should make use of Windows API functions.
SYSINFO.nSystemDefaultUILangID
SYSINFO.nSystemLangID
SYSINFO.nUserLangID
If you need some more specific Language or Regional option values you should make use of Windows API functions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2009
08:21 AM
That's spot on - just what I was after!
Many thanks
Rob
Many thanks
Rob
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)