共用方式為


InputLocale (Standard 7 Package Reference)

7/8/2014

InputLocale specifies the input language and the input method for input devices, such as the keyboard layout. The input locale (also called input language) is a per-process setting that describes a language (for example, Greek) and an input method (for example, the keyboard).

There can be multiple input locales installed, and the user can switch between input locales. Users can add and remove input locales through the Languages tab of the Regional and Language Options Control Panel.

Note

This setting can be applied only during the windowsPE configuration pass. To specify language and locale settings during the oobeSystem or specialize configuration pass, see the InputLocale setting in the International-Core component.

For a list of supported languages, locales, and identifiers, see Language Packages.

Note

This setting is required for all unattended installations. To prevent the Windows Setup user interface (UI) from displaying, you must configure this setting. For a complete list of required settings, see Configure an Answer File to Be Unattended.

Value

Input_locale

Specifies the input language and the keyboard layout for a Windows installation.

Input_locale can be one of two values:

  • A language identifier. For example, to use the default keyboard layout for English (United States) that corresponds to the QWERTY keyboard, you can specify the value en-US.
  • A locale ID and keyboard layout represented as hexadecimal values. For example, for en-US, use 0409:00000409. The first 0409 value represents the locale ID of the input language, and the second 00000409 value represents the keyboard layout.

To specify more than one input locale to add support for more than one keyboard type, you can specify multiple values separated by semicolons. For example, you can specify <InputLocale>en-US; fr-FR; es-ES</InputLocale> to add support for English (US), French (France), and Spanish (Spain) keyboards. The first value listed is used as the default keyboard.

For a list of the default input locale values, see Language Packages.

The valid keyboard layouts that can be configured on a computer are listed in the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts

This string type supports empty elements.

Valid Passes

windowsPE