banner

[RegionalSettings]

Answer File = Unattend.txt and Sysprep.inf

The [RegionalSettings] section contains entries for installing regional settings during Setup.

Using [RegionalSettings] in Unattend.txt

If you include [RegionalSettings] in Unattend.txt, you must also use the /copysource:lang command-line option of Winnt32.exe so that Setup copies the appropriate language files to the hard disk. The command winnt32 /copysource:lang copies all the files in the PRODUCT:\i386\Lang folder to MASTER:\%WINDIR%\Lang.

Important

If you set OemPreinstall to Yes in the [Unattended] section of Unattend.txt and do not provide values for the [RegionalSettings] section, set OEMSkipRegional to 1 in the [GuiUnattended] section of Unattend.txt or in the [GuiUnattended] section of Sysprep.inf to ensure Setup completes without prompting for regional option information. However, do not distribute computers that do not:

Using [RegionalSettings] in Sysprep.inf

To use [RegionalSettings] in Sysprep.inf, you must have all language files on the computer's hard disk. Specify the location of the files by using InstallFilesPath in the [Unattended] section of Sysprep.inf.

Entry Description
InputLocale Specifies the input locale and keyboard layout combinations to install.
InputLocale_DefaultUser Specifies the input locale and keyboard layout combination for the default user.
Language Specifies the language/locale to install.
LanguageGroup Specifies the language group for this installation.
SystemLocale Specifies the system locale to install.
UserLocale Specifies the user locale to install.
UserLocale_DefaultUser Specifies the user locale for the default user.

Sample

This sample demonstrates one use of the [RegionalSettings] section of Unattend.txt.

[RegionalSettings]
InputLocale = 2058:40a, 1046:416
InputLocale_DefaultUser = 2058:40a
Language = 0409
LanguageGroup = 2
SystemLocale = 2058
UserLocale = 2058
UserLocale_DefaultUser = 2058

InputLocale

Specifies the input locale and keyboard layout combinations to install.

Syntax InputLocale = locale_ID:keyboard layout ID[, locale_ID:keyboard_layout_ID][, ...]
Values locale_ID:keyboard layout ID[, locale_ID:keyboard_layout_ID][, ...]
Example
InputLocale = 2058:40a, 1046:416
Comments The first keyboard layout specified is the default layout for the installation. One of the language groups defined in the LanguageGroup entry or the default language group for the language version of Microsoft® Windows® must support the specified combination. If an available language group does not support the combination specified, Setup uses the default combination. Setup also ignores this entry if you specify the Language entry.

For a list of valid locale ID and keyboard layout combinations, visit the Microsoft Global Software Development Web site at http://www.microsoft.com/globaldev/.

icon Return to top

InputLocale_DefaultUser

Specifies the input locale and keyboard layout combination for the default user.

Syntax InputLocale_DefaultUser = locale_ID:keyboard_layout_ID
Values locale_ID:keyboard_layout_ID
Example
InputLocale_DefaultUser = 2058:40a
Comments One of the language groups defined in the LanguageGroup entry or the default language group for the language version of Windows must support the specified combination. You must define the keyboard in the KeyboardLayout entry in the [Unattended] section of Unattend.txt.

Not supported by Sysprep.inf.

For a list of valid locale ID and keyboard layout combinations, visit the Microsoft Global Software Development Web site at http://www.microsoft.com/globaldev/.

icon Return to top

Language

Specifies the language/locale to install.

Syntax Language = locale_ID
Value locale_ID
Example
Language = 0409
Comments One of the language groups specified in the LanguageGroup entry must support this language. If an available language group does not support the locale, Setup uses the default language for this version of Windows.

Important

For a list of valid locales and their language groups, visit the Microsoft Global Software Development Web site at http://www.microsoft.com/globaldev/.

icon Return to top

LanguageGroup

Specifies the language group for this installation.

Syntax LanguageGroup = language_group_ID[, language_group_ID[, ...]]
Values language_group_ID[, language_group_ID[, ...]]
Example
LanguageGroup = 2
Comments You cannot specify a particular locale or language unless you install the appropriate language group.

In Windows XP, if you install one language group, then you install all corresponding language groups. For example, if you install one language group from the set of East Asian language groups, then you also install associated language groups. Likewise, if you install one language group from the set of complex script language groups, then you install all complex script language groups.

The supported language group IDs are listed in the following table.

ID Language Group Corresponding Value in Regional and Language Options Control Panel
1 Western Europe and United States Installed by Default
2 Central Europe Installed by Default
3 Baltic Installed by Default
4 Greek Installed by Default
5 Cyrillic Installed by Default
6 Turkic Installed by Default
7 Japanese East Asian Language
8 Korean East Asian Language
9 Traditional Chinese East Asian Language
10 Simplified Chinese East Asian Language
11 Thai Complex Script
12 Hebrew Complex Script
13 Arabic Complex Script
14 Vietnamese Complex Script
15 Indic Complex Script
16 Georgian Complex Script
17 Armenian Complex Script

For a list of specific languages that correspond to particular language groups, see the Microsoft Global Software Development Web site at http://www.microsoft.com/globaldev/.

icon Return to top

SystemLocale

Specifies the system locale to install.

Syntax SystemLocale = locale_ID
Value locale_ID
Example
SystemLocale = 2058
Comments The system locale enables localized applications to run and display menus and dialog boxes in their native language. One of the language groups specified in the LanguageGroup entry or the default language group for the language version of Windows must support the specified system locale. If an available language group does not support the locale specified, Setup installs the default system locale. Setup also ignores this entry if you specify the Language entry.

icon Return to top

UserLocale

Specifies the user locale to install.

Syntax UserLocale = locale_ID
Value locale_ID
Example
UserLocale = 2058
Comments The user locale controls the settings for numbers, time, currency, and dates. One of the language groups specified in the LanguageGroup entry or the default language group for the language version of Windows must support the specified user locale. If an available language group does not support the locale specified, Setup installs the default user locale. Setup also ignores this entry if you specify the Language entry.

icon Return to top

UserLocale_DefaultUser

Specifies the user locale for the default user.

Syntax UserLocale_DefaultUser = locale_ID
Value locale_ID
Example
UserLocale_DefaultUser = 2058
Comments The user locale controls the settings for numbers, time, currency, and dates. The specified user locale must be supported by one of the languages that is specified in the LanguageGroup setting or the default language for the Windows version that is installed.

icon Return to top