views:

89

answers:

1

I'm writing a script using SOTI Package Manager and I'm trying to find the particular key I can use to retrieve what the current Windows Mobile Regional Setting is for Language.

If it's French (Canada) I want to display post-install script messages in French, otherwise I want them in English.

I've got the ability to check a registry value while running the post-install script by using the following syntax (for example):

set myVar=REG://HKEY_LOCAL_MACHINE\Windows CE Tools?VN=Platform

I've looked at the MSDN articles on using SetLocaleInfo() and MAKELANGID. I've gotta be honest in that I'm not sure how I'd go about figuring out what the French (Canada) LANGID actually is.

Anyone off the top of their head be able to tell me where I need to be checking for it or better yet, how you figured that out?

+1  A: 

You can check the following value: HKEY_LOCAL_MACHINE\nls\DefaultLCID

The DWORD value will be the LCID of the currently active regional settings. So for French (Canada) it would be 0x0c0c, and for English (Canada) it is 0x1009.

tomlog
+1 - Bingo. Thanks!
Mat Nadrofsky