Jump to content


wmmayms

Guide: Creating a bootimage with another keyboard layout (winPE 3)

Recommended Posts

DISM.exe is a new command line tool included in the Windows Automated Installation Kit (Windows AIK) 2.0. You can use DISM to service Windows images, both WIM and VHD files. This is a useful tool that can be used to add/remove device drivers, OS Packages, hotfixes, etc.

 

 

Here is how to create a custom boot image with diffrent keyboard layout

And if read closly you will learn how to modify the registry and filstructure on a WIM file.

 

1. Make sure you have Windows Automated Installation Kit installed (make sure you have the latest version)

2. Open "Deployment Tools Command Prompt" (Start -> All programs -> Microsoft Windows AIK)

3. Copy base files to c:\winpe (change x86 to amd64 for 64bit)

copype x86 c:\winpe  

post-2500-12798806971307_thumb.jpg

 

4. Mount imagefile

Dism /mount-wim /wimfile:c:\winpe\winpe.wim /index:1 /mountdir:c:\winpe\mount 

post-2500-1279879875553_thumb.jpg

 

5. Change to Swedish keyboard layout (or whatever you prefer, make changes to the red parts)

Dism /image:C:\winpe\mount /Set-SysLocale:[color="#ff0000"]sv-SE[/color]

Dism /image:C:\winpe\mount /Set-UserLocale:[color="#ff0000"]sv-SE[/color]

Dism /image:C:\winpe\mount /Set-InputLocale:[color="#ff0000"]sv-SE[/color]

post-2500-12798803077287_thumb.jpg

 

For the curious, this changes some of the <%mountpath%>\Windows\System32\config\*.* registry hives:

Changes can be viewed by opening regedit, select HKLM and choose file, load hive (for example DEFAULT)

post-2500-12798786653652_thumb.jpg

 

6. Create a "Tools" folder on this path: C:\winpe\mount (<%mountpath%>)

 

 

7. Input all programs you need into the folder

post-2500-12798799595753_thumb.jpg

 

8. Edit the following regkey: HKEY_LOCAL_MACHINE\<filename>\ControlSet001\Control\Session Manager\Environment

Input this value: %SystemRoot%\system32;%SystemRoot%;%SystemDrive%\Tools;

Into the value named "path"

post-2500-12798795567129_thumb.jpg

 

9. Save the changes

Dism /Unmount-Wim /MountDir:C:\winpe\mount /Commit  

post-2500-12798804818386_thumb.jpg

 

10. Change format from Windows Image format so we can boot from the file

copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim  

 

 

 

When this is done

This new custome boot image can be added to SCCM: c:\winpe\iso\sources\boot.wim

 

PS don´t forget to add F8 support!! cool.gif

 

Cheers Marcus

Share this post


Link to post
Share on other sites


Btw

 

If you want to burn this wim file here is the command for creating the ISO. Run it in the "Deployment Tools Command Prompt"

oscdimg –n –bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso 

 

Note that the –b switch indicates where the boot sector for the CD will be, and the last parameter tells it where to create the image.

 

When this is done you can just burn the ISO with any burning program.

Share this post


Link to post
Share on other sites

Great guide, it was just what I needed to add Danish keybord to my WinPE image :-)

Share this post


Link to post
Share on other sites

Please clarify the

"For the curious, this changes some of the <%mountpath%>\Windows\System32\config\*.* registry hives:
Changes can be viewed by opening regedit, select HKLM and choose file, load hive (for example DEFAULT)"

I cannot load "a hive", deafult is in use ...?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...