- 0
Customising Windows 7 deployments - part 6. Adding multiple keyboard layouts and multiple languages
Asked by
anyweb
Asked by
anyweb
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
This post is an addition to Part 4 where we installed Language packs on a one-by-one basis (i.e. one language pack selected, one installed, one keyboard layout selected, one installed). What if you want to install multiple Language packs and multiple Keyboard Layouts well this is how to do it...but before we continue, make sure you have successfully completed Part 4 before attempting this.
To make this possible I adapted the windows-noob.com Multipurpose FrontEnd HTA so that i could select Multiple languages and Multiple Keyboard Layouts, this change is only a minor one to both the backend script (HTA) and the task sequence itself, so rather than explain all about them i'll post this bits you need to know here. Also, I havn't ported these changes yet *but will soon* into the BitLocker Frontend HTA which I think looks much cooler, so I hope that you check that one out also.
So where do we start, with the actual frontend HTA backend code.. aka, the HTA itself.
The following section has been changed in the Deploymenu.HTA file,
the new bits in both drop down menus (regional/language) are this
and they offer us the ability to set nothing (and get the default en-US/English) or to select Multi or to select ONE language or ONE keyboard layout. The MULTI option is special. It simply sets a variable which will run a group of steps to select multiple languages and/or keyboard layouts in the task sequence. The screenshot below shows both Regional (keyboard layout) and Language options have been set to Multi via the drop down menu.
Setting the Regional options
If we select Multi for Regional options then the following group is run in the task sequence
the Options tab is where it detects the RegionValue variable value and if it equals Multi this group is executed
the first step of the group sets the OSDInputLocale variable and it sets the Default keyboard layout (the first one listed) and the remaining available keyboards added to windows
the values in that step are as follows
Note: You can get a list of these values on MSDN here.
the remaining steps of this group simply set OSDSystemLocale and OSDUserLocale to be equal to en-US.
Setting the Language options
The first step of this group (which only runs if the LanguageValue variable=Multi) is to set the OSDUILanguage, I set it to en-US.
The next step installs the Language pack offline. The only magic here is in the language package, it must contain ALL of the language packs you intend to install as part of your Multi Language installation, so in my example I install 4 languages,
and all those language packs are in my Offline Nordic Language Pack. Your multi language pack could contain however many languages you intend to install as a group, but the more you add the longer the install will take.
What is the result ?
so what do you get when it's all done ? you get the ability to use a drop down keyboard selector on the Windows 7 login screen
and you can choose the same keyboard layouts within Windows
and the languages are available also
jod done, i'd say :-)
Download the goodies
Here's the updated task sequence and HTA files, you dont have to use a HTA to set the variables you can do that via collection variables or some other method but doing it in a HTA is cool. People will like you more.
DeployMenu.zip
have fun !
cheers
niall
Share this post
Link to post
Share on other sites