How to REALLY handle the unattended version of Regional and Language Options

Sorting it all Out
Michael Kaplan's random stuff of dubious value
Be sure to read the disclaimer here first!

How to REALLY handle the unattended version of Regional and Language Options

  • Comments 10

I have talked about the Microsoft Knowledge Base article that describes how to run Regional and Language Options in unattend mode (289125), like in these three posts.

In all three, I used a technique akin to the following to start the control panel applet, just as the KB article does:

rundll32.exe shell32,Control_RunDLL intl.cpl

Allow me to point out at this point that I was incorrect, and so is that KB article.

As Raymond Chen has pointed out, the right way to do it (unless you are working for Microsoft and trying to debug the bleeding control panel applet) is via control.exe:

control.exe intl.cpl

This is even the documented way to do things, as is described here:

control.exe International

This is obviously much easier to remember and use than anything involving rundll32....

And as reader Paul pointed out (posted again here so it can have more visibility!):

Might be worth noting that this process does create a logfile, by default in c:\windows\regopt.log that has content like the following:

************************************************************
Region and Languages Options Unattended Mode Log  
************************************************************

/f:"c:\regopts.txt" /s:"I:\I386"

Switch /F detected!
Switch /S detected!
<--- Unattended file log start---->
[RegionalSettings]
LanguageGroup=11
InputLocale=041e:0000041e
<---  Unattended file log end ---->
Language group installation requested: 11
No valid Language settings found, look for individual keywords.
Input locale installation requested.
Keyboard Layout installation requested: 041e

The best thing is when you get it wrong (e.g. specify the wrong language group for the locale you are requesting etc) it actually tells you what you are doing wrong.

Also, with the /S switch, you point it at the i386 directory level, not the LANG level, it finds LANG etc by itself :)

Hope that comes of use to someone!

In addition to all of this, let me add that I will be posting soon about the new Vista features related to running Regional and Language Options in an unattended mode, including some of the changes that have to be made to scripts here....

Enjoy!

 

This post brought to you by "" (U+122c, a.k.a. ETHIOPIC SYLLABLE REE)

Comment on the blather
Leave a Comment
  • Please add 8 and 6 and type the answer here:
  • Post
Blog - Comment List
  • Hi Michael.

    Did you know how to start the 'Customize Regional Options' window using 'rundll32.exe' or 'control.exe' ?

    Thanks in advance.

    Regards,
    Ivan.
  • Sorry Ivan, there is actually no way to start it and open the customize dialog, other than to have some sort of UI automation press the button, etc.
  • Michael, on a related note, could you shed some light on language vs input locale?

    I typically use a Norwegian keyboard layout, but many applications seem to think this means I also want Norwegian language in the UI. The most frustrating example is installing Intel's NIC drivers on a server. Half of the UI is in English and the rest in Norwegian. Confusing to say the least and certainly annoying.

    I've been looking for a separate value that indicates the preferred language of the user, but all I can find is the input locale.

    Rather silly if this is the case, but I do see many apps that makes this assumption, so...

    There's nothing wrong with Norwegian, but the community is too small to warrant translation of computer terms. Someone have of course tried, but we all ignore their efforts.

    --
    Rune
  • Rune asked (in this post):

    Michael, on a related note, could you shed some light on language vs input...
  • In previous posts, I have talked about the unattend mode of Regional and Language Options.
    And in the...
  • Ivan, in Vista there is a way to start the Customize Regional Options by calling

    control.exe intl.cpl,, /p:"numbers"
  • So the other day I was asked how launch the Text Services and Input Languages dialog directly. You know,

  • Joost van Doorn asks (via the Contact link): Hello Michael, Since your name appears in a lot of MSDN

  • In the c:\windows\regopt.log listed, what does "No valid Language settings found, look for individual keywords" mean?

    What settings could be included in the input file to prevent this warning?

  • If you don't give more info including what is in your unattend file it is hard to comment....

Page 1 of 1 (10 items)