Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
n00b2012

Microsoft keyboard layout creator Standalone Installer

1 post in this topic

Hey All,

I am not much expert with installers and stuff but I have a simple question I have created a custom keyboard layout using Microsoft keyboard layout creator, and it came up with Microsoft Installer.

Now I want to install that custom keyboard layout with my own installer with my custom made fonts , ie; install shield or advance installer.

1- While running the Microsoft Installer i noticed it make changes in following registry keys.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\]

[HKEY_CURRENT_USER\Keyboard Layout\Preload]

[HKEY_CURRENT_USER\Keyboard Layout\Substitutes]

So i copied my urdu.dll (custom keyboard layout file) in system 32 folder and executed following reg file

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\a0000420]

"Layout Text"="Urdu Keyboard"

"Layout File"="urdu.dll"

"Layout Id"="00c1"

"Layout Product Code"="{2F7B2D99-599B-4D70-8C0A-C088DEDA824D}"

"Layout Display Name"="@%SystemRoot%\\system32\\urdu.dll,-1000"

"Custom Language Display Name"="@%SystemRoot%\\system32\\urdu.dll,-1100"

"Custom Language Name"="Urdu (Islamic Republic of Pakistan)"

[HKEY_CURRENT_USER\Keyboard Layout\Preload]

"3"="00000420"

[HKEY_CURRENT_USER\Keyboard Layout\Substitutes]

"00000420"="a0000420"

but even though after making these changes , the keyboard doesn't show up in "Language Bar Settings Menu"

while when i install my Layout with Microsoft Keyboard Layout Creator , it make same changes in above registry keys, and it show up instantly as well.

2- Further investigation showed

There is a binary action dll or KbdMsi.dll (internal name) found with in Microsoft keyboard Layout installer, allocate/arrange keyboard layouts in case there is another custom layout installed within that language.

3- Now ?

Would Intlcfg Command-Line Options can be any help ?

Can we use this intlcfg operation or any other command in custom installer (Install Shield , Advance Installer etc.) to install custom keyboard layout , which add it in Input Language list automatically and enable in language bar ?

Edit:

----------------------------------------------------------------------------

Reply from Install Shield:

Looking at the MSI I generated in a test run with the MSKLC, I can tell you a couple things.

There are no registry entries in it; I suspect the Custom Action DLL creates these.

It deploys a single DLL and uses a system search to check for the DLL already being present in (or below?) the SystemFolder.

The MSI lacks a _Validation table, and this appears to be what is blocking InstallShield from opening it. If you have (or get) ORCA, this is easy to add by right clicking in the Tables list, selecting Add Table, and selecting the _Validation table checkbox. This will allow you to open it in InstallShield, but the behavior may be a little weird unless you also import real _Validation table rows.

It looks pretty easy to merge this into your installer, assuming a full blown keyboard layout is similar to this, especially with the help of something like ORCA to sidestep our dependency on the _Validation table.

it's hard to reverse engineer a custom action DLL. However you could probably copy it (save the DLL from the Binary table) and its sequencing into your project, assuming the licensing on MSKLC's output allows such.

------------------------------------------------------------------------------------

Hope someone would help.

n00b2012

0

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.