cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RobForrest
Level 3

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
Labels (1)
0 Kudos
(4) Replies
Holger_G
Level 10

Do you mean the 'Location' setting (Me, XP and later)?
0 Kudos
RobForrest
Level 3

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
0 Kudos
Holger_G
Level 10

SYSINFO provides some language related values like:

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.
0 Kudos
RobForrest
Level 3

That's spot on - just what I was after!
Many thanks

Rob
0 Kudos