LP(MUI):How to add IME keyboards using the unattend .xml

LP(MUI):How to add IME keyboards using the unattend .xml

  • Comments 2
  • Likes

APPLIES TO

• Windows Vista
• Windows Server 2008
• Windows 7
• Windows Server 2008 R2

In Windows XP, you could use the following to add East Asian language keyboards:

E0010404 Chinese (Traditional) - Phonetic
E0010411 Japanese Input System (MS-IME2002)
E0010412 Korean Input System (IME 2000)
E0010804 Chinese (Simplified) - QuanPin
E0020404 Chinese (Traditional) - ChangJie
E0020804 Chinese (Simplified) - ShuangPin
E0030404 Chinese (Traditional) - Quick
E0030804 Chinese (Simplified) - ZhengMa
E0040404 Chinese (Traditional) - Big5 Code
E0050404 Chinese (Traditional) - Array
E0050804 Chinese (Simplified) - NeiMa
E0060404 Chinese (Traditional) - DaYi
E0070404 Chinese (Traditional) - Unicode
E0080404 Chinese (Traditional) - New Phonetic
E0090404 Chinese (Traditional) - New ChangJie
E00E0804 Chinese (Simplified) - Microsoft Pinyin IME 3.0
E01F0404 Chinese (Traditional) – Alphanumeric

You could add the different keyboard languages, for example:

============Start of RegOpts.txt============

[RegionalSettings]

InputLocale = 0409:00000409,0412:E0010412

============End of RegOpts.txt============

Using the command:

Start, Run, rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:\RegOpts.txt"

which is documented in:
289125 How to create the regional and language settings for an unattended installation of Windows MultiLanguage Version

or

325856 How to specify regional and language settings for an unattended installation of Windows MultiLanguage Version in Windows Server 2003

 

If you try doing the same thing on Windows Vista or Windows Server 2008 or Windows 7 or Windows Server 2008 R2, you will not see the keyboard languages added in Start, Regional and Language Options, Keyboards and Languages, Change Keyboards…, or get errors in the event log.

An example of a bad unattended .xml file:

============Start of RegOpts.xml============

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">

                <!-- User List-->

                <gs:UserList>

                                <gs:User UserID="Current" CopySettingsToSystemAcct="true" />

                </gs:UserList>

                <!--System locale-->

                <gs:SystemLocale Name="zh-TW"/>

                <gs:InputPreferences>

                                <!--en-US-->

                                                <gs:InputLanguageID Action="add" ID="0409:00000409" Default="true"/>

                                <!--ko-Korean-->

                                                <gs:InputLanguageID Action="add" ID="0412:E0010412"/>

                </gs:InputPreferences>

</gs:GlobalizationServices>

============End of RegOpts.xml============

Start, control intl.cpl,, /f:"RegOpts.xml"

Windows Vista or Windows Server 2008 error:

Start, EventVwr.msc, Applications and Service Logs, Microsoft, Windows, International

Event ID: 10219

Source: International

Task Category: NLS Unattend Regional and Language Options

Unexpected Failure.  Unsupported parameter.

On Windows 7 or Windows Server 2008 R2 it fails with:

Event ID: 10008

Source: International

Error while changing keyboard/input method for "0412:E0010412".

 

Instead, you will need to use the following:

Chinese Simplified PinyinIme50

0804

{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}

{F3BA9077-6C7E-11D4-97FA-0080C882687E}

 

Chinese Simplified ABC

0804

{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}

{C4D24306-1633-41AE-921E-C2E5B9D46E6B}

 

Chinese Simplified QuanPin

0804

{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}

{54FC610E-6ABD-4685-9DDD-A130BDF1B170}

 

Chinese Simplified ZhengMa

0804

{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}

{733B4D81-3BC3-4132-B91A-E9CDD5E2BFC9}

 

Chinese Simplified ShuangPin

0804

{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}

{EF63706D-31C4-490E-9DBB-BD150ADC454B}

 

Chinese Traditional NewPhonetic

0404

{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}

{B2F9C502-1742-11D4-9790-0080C882687E}

 

Chinese Traditional NewChangJie

0404

{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}

{F3BA907A-6C7E-11D4-97FA-0080C882687E}

 

Chinese Traditional NewQuickChangJie

0404

{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}

{0B883BA0-C1C7-11D4-87F9-0080C882687E}

 

Chinese Traditional Phonetic

0404

{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}

{761309DE-317A-11D4-9B5D-0080C882687E}

 

Chinese Traditional ChangJie

0404

{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}

{4BDF9F03-C7D3-11D4-B2AB-0080C882687E}

 

Chinese Traditional QuickChangJie

0404

{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}

{6024B45F-5C54-11D4-B921-0080C882687E}

 

Chinese Traditional DaYi

0404

{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}

{037B2C25-480C-4D7F-B027-D6CA6B69788A}

 

Chinese Traditional Array

0404

{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}

{D38EFF65-AA46-4FD5-91A7-67845FB02F5B}

 

Korean

0412

{A028AE76-01B1-46C2-99C4-ACD9858AE02F}

{B5FE1F02-D5F2-4445-9C03-C568F23C99A1}

 

Japanese

0411

{03B5835F-F03C-411B-9CE2-AA23E1171E36}

{A76C93D9-5523-4E90-AAFA-4DB112F9AC76}

 

For example:

<!--Keyboard Language Change-->

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">

    <!--User List-->

    <gs:UserList>

        <gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>

    </gs:UserList>

    <!--input preferences-->

    <gs:InputPreferences>

        <!--en-US-->

                                <gs:InputLanguageID Action="add" ID="0409:00000409" Default="true"/>

                <!--KO-Korean-->

                                <gs:InputLanguageID Action="add" ID="0412:{A028AE76-01B1-46C2-99C4-ACD9858AE02F}{B5FE1F02-D5F2-4445-9C03-C568F23C99A1}"/>

    </gs:InputPreferences>

</gs:GlobalizationServices>

Start, control intl.cpl,, /f:"RegOpts.xml"

For more information:

LP(MUI):How to specify regional and language settings for an unattended installation of Windows Language Pack (LP, used to be known as MultiLanguage) version

Comments
  • One tip: the file name has to be in double quotes even if the path and filename do not contain blanks, otherwise the call will fail:

    control intl.cpl,, /f:"<Path>\<XML-Filename>"

  • The xml works like a dream.  Great help but where can I find a list of other country/language codes?  There should be a list or can they be identified in the registry if you manualy add them?

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment