regioninfo


How to find world region (or country) or language from the windows registry?


I'm working with a very old installer that can read Registry entries but has a difficulty (complex) time executing Windows APIs.
I'm trying to detect whether the PC it's being installed on is in Australia.
Any ideas?
This key:
HKEY_USERS.DEFAULT\Keyboard Layout\Preload
sets the default language for the login screen
The different country codes are listed here:
http://www.windowsitpro.com/Article/ArticleID/14867/14867.html
From my testing and the MSDN page below, this will work:
HKEY_CURRENT_USER\Control Panel\International\sCountry
="Australia"
This corresponds to setting in the Region Options ("Select an item to match it' preferences".
http://support.microsoft.com/kb/102978
This has the advantage of also being able to be read from a non-admin account.

Related Links

How to find world region (or country) or language from the windows registry?

Categories

HOME
qt
python-2.7
plesk
yahoo-weather-api
windows-10
mousemove
ios-simulator
informatica
malware
openflow
fedora
onvif
erd
global-variables
temperature
cloudsim
clr
adminlte
workday
gollum-wiki
amazon-sns
device
pyopencl
vuforia
web-push
cellular-network
sap-lumira
running-object-table
miniprofiler
copy-protection
d3.js-v4
xenapp
knights-tour
winrm
des
cargo
pyttsx
common-table-expression
wysihtml5
windows-media-player
libreoffice-writer
nusoap
lightning-workbench
jgrapht
sigsegv
embedded-v8
watir-webdriver
sesame
word-2016
dymola
bpms
jsonix
jsf-2.3
svnserve
wininet
swiffy
onepage-checkout
webgrind
replicaset
org-babel
physicsjs
shoes
html-escape-characters
debug-symbols
password-recovery
global-scope
dmake
back
csslint
nodeload
profiles
assetic
lsa
spring-security-acl
jquery-transit
donut-chart
office-app
jsplitpane
gprof
towers-of-hanoi
workflow-manager-1.x
dropshadow
getopts
tablet-pc
grails-validation
digiflow
android-input-method
principles
external-sorting
jquery-effects
subtext
accumulator

Resources

Encrypt Message