Jump to content

Automatically add Keyboard Layouts


GAT

Recommended Posts

Is there a way to automatically (during unattended installation) to automatically add new keyboard layouts?

I'm wanting to add specifically the English (United States) United States-Dvorak and the Spanish (Mexico) United States-International layouts.

I would also prefer that language bar be turned off.

Any help would be appreciated,

Thanks,

GAT

Link to comment
Share on other sites


I've the same problem. Well, to be specific, I want to add the Japanese Keyboard layout to my English WinXP unattended installation. For the winnt.sif, I've added the following and the registry settings

[RegionalSettings]
   LanguageGroup="7"
   SystemLocale="00000411"
   UserLocale="00000411"
   InputLocale="0411:e0010411"

411 -> stands for Japanese stuff.

Anyway, I did the install but the keyboard layout was for the general 101 keyboard layout.

I looked inside the keyboard drivers from the control panel and found out that the Japanese Windows XP had the following drivers installed.

c:\windows\system32\drivers\i8042prt.sys
c:\windows\system32\drivers\kdbclass.sys
c:\windows\system32\kbd101.dll
c:\windows\system32\kdbjpn.dll

and the unattended English Windows only has the following

c:\windows\system32\drivers\i8042prt.sys
c:\windows\system32\drivers\kdbclass.sys

The question is, how can I add the following two DLLs to the unattended installation of English WinXP?

c:\windows\system32\kbd101.dll

c:\windows\system32\kdbjpn.dll

Link to comment
Share on other sites

Well, you can do this like that

1.create folder system32 and put in into $$ folder on your CD

2.copy files that you need to system32 folder that you created

3.register these files.

(cmd file)

regsvr32 /s %systemroot%\system32\your file name

good luck

moo

Link to comment
Share on other sites

Thanks for who helped :rolleyes:

Things turned out that it was an easy thing to do after all.

If someone else wants to add any foreign keyboards, i.e. 106 keys, instead of the normal 101 keyboard, all one has to do is to export the registry settings BEFORE you make the changes from the control panel -> keyboard -> update driver and then export the registry setting and compare them. The result is the registry settings that needs to be added at the unattended install part.

The following is the .reg for the 101 keyboard to the 106 JPN style keyboard setting if anyone wil want to use it. Doing the same thing stated above can make the reg settings for your desired keyboard.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96B-E325-11CE-BFC1-08002BE10318}\0000]
"DriverDesc"="Japanese PS/2 Keyboard (106/109 Key)"
"InfSection"="106_TYPE_Inst"
"MatchingDeviceId"="*pnp0320"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ACPI\PNP0303\4&5289e18&0]
"DeviceDesc"="Japanese PS/2 Keyboard (106/109 Key)"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\i8042prt\Parameters]
"LayerDriver JPN"="kbd106.dll"
"LayerDriver KOR"="kbd101a.dll"
"OverrideKeyboardIdentifier"="PCAT_106KEY"
"OverrideKeyboardSubtype"=dword:00000002
"OverrideKeyboardType"=dword:00000007

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96B-E325-11CE-BFC1-08002BE10318}\0000]
"DriverDesc"="Japanese PS/2 Keyboard (106/109 Key)"
"InfSection"="106_TYPE_Inst"
"MatchingDeviceId"="*pnp0320"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI\PNP0303\4&5289e18&0]
"DeviceDesc"="Japanese PS/2 Keyboard (106/109 Key)"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
"LayerDriver JPN"="kbd106.dll"
"LayerDriver KOR"="kbd101a.dll"
"OverrideKeyboardIdentifier"="PCAT_106KEY"
"OverrideKeyboardSubtype"=dword:00000002
"OverrideKeyboardType"=dword:00000007

The reg file is called from the cmdlines.txt as keyboard_JPN.reg

START /wait regedit /S %systemdrive%\install\intl_JPN.reg
START /wait regsvr32 /S %systemroot%\system32\kbdjpn.dll
START /wait regsvr32 /S %systemroot%\system32\kbd101.dll
START /wait regedit /S %systemdrive%\install\keyboard_JPN.reg

And also, I did the regsvr32 for the kbdjpn.dll and the kbd101.dll incase the system needs it. (Just didn't test it w/o the regsvr32 stuffs(the to lines)).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...