How to add Input Method Editor (IME) support to Windows PE 2.0

How to add Input Method Editor (IME) support to Windows PE 2.0

Article ID : 926181
Last Review : March 15, 2007
Revision : 2.3
On This Page

INTRODUCTION

Windows Vista includes Windows Preinstallation Environment (Windows PE) version 2.0. An Input Method Editor (IME) lets you type double-byte characters in some languages. For example, you can use an IME to type such characters in Japanese. By default, Windows PE version 2.0 does not include support for an IME. This article describes steps to add this support to Windows PE.

To enable IME support in Windows Vista, you must install the OEM Preinstallation Kit (OPK) or the Windows Automated Installation Kit (AIK) on the same language version of Windows Vista as the IME that you want to use. For example, for Japanese IME support, you must install the OPK or the AIK on a Japanese version of Windows Vista.

Back to the top

MORE INFORMATION

To add IME support in Windows Vista, follow these steps:

1. Paste one of the following scripts to a text file. Then, save the text file by using the name that is provided here.

Note You cannot run these scripts in Microsoft Windows Server 2003, in Microsoft Windows XP, or in earlier versions of Windows.

• To add support for a Traditional Chinese IME, paste this script to a new file that is named WinPEIMETC.txt.

echo Preparing IME folder for WinPE.setlocalset WinPEWinDir=<Path to Windows Directory of your WinPE image (i.e. C: myWinPE Windows)>set IMEBinSrc=%windir%md %WinPEWinDir% IMEmd %WinPEWinDir% IME IMETC10md %WinPEWinDir% IME IMETC10 DICTSmd %WinPEWinDir% IME IMETC10 HELPmd %WinPEWinDir% System32 IMEmd %WinPEWinDir% System32 IME IMETC10md %WinPEWinDir% System32 IME sharedrem SYSTEM32 folder (Cicero)%windir% system32 xcopy %IMEBinSrc% System32 CTFMON.EXE  %WinPEWinDir% System32 CTFMON.EXE /y /d%windir% system32 xcopy %IMEBinSrc% System32 MSUTB.DLL   %WinPEWinDir% System32 MSUTB.DLL /y /d%windir% system32 xcopy %IMEBinSrc% System32 MsCtfMonitor.DLL   %WinPEWinDir% System32 MsCtfMonitor.DLL /y /d%windir% system32 xcopy %IMEBinSrc% System32 PINTLGNT.IME  %WinPEWinDir% System32 /y /d%windir% system32 xcopy %IMEBinSrc% IME IMETC10 %WinPEWinDir% IME IMETC10 /s /y /drem IMETC10 folder%windir% system32 xcopy %IMEBinSrc% System32 IME IMETC10 %WinPEWinDir% System32 IME IMETC10 /s /y /drem shared folder%windir% system32 xcopy %IMEBinSrc% System32 IME shared %WinPEWinDir% System32 IME shared /s /y /drem Creating some batch files...@echo @echo off                                                   >  %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MSUTB.DLL                   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MsCtfMonitor.DLL            >> %WinPEWinDir% System32 IME IMEReg.CMD@for %%i in (IMEAPIS.DLL imecfm.dll IMEPADSM.DLL IMETIP.DLL imever.dll MSCAND20.DLL) do @echo REGSVR32 /S %%WinDir%% System32 IME shared %%i >> %WinPEWinDir% System32 IME IMEReg.CMD@for %%i in (ImTCCfg.DLL ImTCCore.dll IMTCTIP.dll imtcui.DLL) do @echo REGSVR32 /S %%WinDir%% System32 IME IMETC10 %%i >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKLM Software Microsoft CTF /v StartOnNoTaskEng /t REG_DWORD /d 1 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}                                                                                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732} LanguageProfile                                                                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732} LanguageProfile 0x00000404                                                             ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732} LanguageProfile 0x00000404 {B2F9C502-1742-11D4-9790-0080C882687E}                      ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732} LanguageProfile 0x00000404 {B2F9C502-1742-11D4-9790-0080C882687E} /v Enable /t REG_DWORD /d 1                                                                                                     ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem                                                                                                            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000404                                                                                                 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31}                                                          ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000                                                 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v CLSID /d {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}  ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v Profile /d {B2F9C502-1742-11D4-9790-0080C882687E}  ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v KeyboardLayout /t REG_DWORD /d 0            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder Language /v 00000000 /d 00000404            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF HiddenDummyLayouts /v 00000404 /d 00000404            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Default /d {531FDEBF-9B4C-4A43-A2AA-960E8FCDC732} /f         ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Profile /d {B2F9C502-1742-11D4-9790-0080C882687E} /f         ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000404 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v KeyboardLayout /t REG_DWORD /d 04040404 /f                   ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo start CTFMON.EXE  >> %WinPEWinDir% System32 IME IMEReg.CMD@if not exist %WinPEWinDir% System32 startnet.org copy %WinPEWinDir% System32 startnet.cmd %WinPEWinDir% System32 startnet.org@echo @echo off                               >  %WinPEWinDir% System32 STARTNET.CMD@echo echo Preparing WinPE ...                >> %WinPEWinDir% System32 STARTNET.CMD@type %WinPEWinDir% System32 STARTNET.org     >> %WinPEWinDir% System32 STARTNET.CMD@echo @echo.                                  >> %WinPEWinDir% System32 STARTNET.CMD@echo Call %%WinDir%% System32 IME IMEReg.CMD >> %WinPEWinDir% System32 STARTNET.CMDendlocal

• To add support for a Simplified Chinese IME, paste this script to a new file that is named WinPEIMESC.txt.

echo Preparing IME folder for WinPE.setlocalset WinPEWinDir=<Path to Windows Directory of your WinPE image (i.e. C: myWinPE Windows)>set IMEBinSrc=%windir%md %WinPEWinDir% IMEmd %WinPEWinDir% IME IMESC5md %WinPEWinDir% IME IMESC5 DICTSmd %WinPEWinDir% IME IMESC5 HELPmd %WinPEWinDir% System32 IMEmd %WinPEWinDir% System32 IME IMESC5md %WinPEWinDir% System32 IME sharedrem SYSTEM32 folder (Cicero)%windir% system32 xcopy %IMEBinSrc% System32 CTFMON.EXE  %WinPEWinDir% System32 CTFMON.EXE /y /d%windir% system32 xcopy %IMEBinSrc% System32 MSUTB.DLL   %WinPEWinDir% System32 MSUTB.DLL /y /d%windir% system32 xcopy %IMEBinSrc% System32 MsCtfMonitor.DLL   %WinPEWinDir% System32 MsCtfMonitor.DLL /y /d%windir% system32 xcopy %IMEBinSrc% System32 PINTLGNT.IME  %WinPEWinDir% System32 /y /d%windir% system32 xcopy %IMEBinSrc% IME IMESC5 %WinPEWinDir% IME IMESC5 /s /y /drem IMESC5 folder%windir% system32 xcopy %IMEBinSrc% System32 IME IMESC5 %WinPEWinDir% System32 IME IMESC5 /s /y /drem shared folder%windir% system32 xcopy %IMEBinSrc% System32 IME shared %WinPEWinDir% System32 IME shared /s /y /drem Creating some batch files...@echo @echo off                                                   >  %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MSUTB.DLL                   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MsCtfMonitor.DLL            >> %WinPEWinDir% System32 IME IMEReg.CMD@for %%i in (IMEAPIS.DLL imecfm.dll IMEPADSM.DLL IMETIP.DLL imever.dll IMJKAPI.DLL MSCAND20.DLL) do @echo REGSVR32 /S %%WinDir%% System32 IME shared %%i >> %WinPEWinDir% System32 IME IMEReg.CMD@for %%i in (ImSCCfg.DLL ImSCCore.dll IMSCTIP.dll imscui.DLL PMIGRATE.dll) do @echo REGSVR32 /S %%WinDir%% System32 IME IMESC5 %%i >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKLM Software Microsoft CTF /v StartOnNoTaskEng /t REG_DWORD /d 1 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}                                                                                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E} LanguageProfile                                                                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E} LanguageProfile 0x00000804                                                             ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E} LanguageProfile 0x00000804 {F3BA9077-6C7E-11D4-97FA-0080C882687E}                      ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E} LanguageProfile 0x00000804 {F3BA9077-6C7E-11D4-97FA-0080C882687E} /v Enable /t REG_DWORD /d 1                                                                                                     ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem                                                                                                            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000804                                                                                                 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31}                                                          ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000                                                 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v CLSID /d {81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}  ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v Profile /d {F3BA9077-6C7E-11D4-97FA-0080C882687E}  ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v KeyboardLayout /t REG_DWORD /d 0            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF SortOrder Language /v 00000000 /d 00000804            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKCU Software Microsoft CTF HiddenDummyLayouts /v 00000804 /d 00000804            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Default /d {00000000-0000-0000-0000-000000000000} /f         ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Profile /d {00000000-0000-0000-0000-000000000000} /f         ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000804 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v KeyboardLayout /t REG_DWORD /d 00000804 /f                   ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo start CTFMON.EXE  >> %WinPEWinDir% System32 IME IMEReg.CMD@if not exist %WinPEWinDir% System32 startnet.org copy %WinPEWinDir% System32 startnet.cmd %WinPEWinDir% System32 startnet.org@echo @echo off                               >  %WinPEWinDir% System32 STARTNET.CMD@echo echo Preparing WinPE ...                >> %WinPEWinDir% System32 STARTNET.CMD@type %WinPEWinDir% System32 STARTNET.org     >> %WinPEWinDir% System32 STARTNET.CMD@echo @echo.                                  >> %WinPEWinDir% System32 STARTNET.CMD@echo Call %%WinDir%% System32 IME IMEReg.CMD >> %WinPEWinDir% System32 STARTNET.CMDendlocal

• To add support for a Japanese IME, paste this script to a new file that is named WinPEIMEJP.txt.

echo Preparing IME folder for WinPE.setlocalset WinPEWinDir=<Path to Windows Directory of your WinPE image (i.e. C: myWinPE Windows)>set IMEBinSrc=%windir%md %WinPEWinDir% IMEmd %WinPEWinDir% IME IMEJP10md %WinPEWinDir% IME IMEJP10 DICTSmd %WinPEWinDir% System32 IMEmd %WinPEWinDir% System32 IME IMEJP10md %WinPEWinDir% System32 IME sharedrem SYSTEM32 folder (Cicero)copy /y %IMEBinSrc% System32 CTFMON.EXE  %WinPEWinDir% System32 CTFMON.EXEcopy /y %IMEBinSrc% System32 MSUTB.DLL   %WinPEWinDir% System32 MSUTB.DLLcopy /y %IMEBinSrc% System32 MsCtfMonitor.DLL   %WinPEWinDir% System32 MsCtfMonitor.DLLrem DICTS foldercopy /y %IMEBinSrc% IME IMEJP10 DICTS IMJPST.DIC %WinPEWinDir% IME IMEJP10 DICTS IMJPST.DICcopy /y %IMEBinSrc% IME IMEJP10 DICTS IMJPGN.GRM %WinPEWinDir% IME IMEJP10 DICTS IMJPGN.GRMrem SYSTEM32 foldercopy /y %IMEBinSrc% System32 IMJP10.IME  %WinPEWinDir% System32 IMJP10.IMEcopy /y %IMEBinSrc% System32 IMJP10K.DLL %WinPEWinDir% System32 IMJP10K.DLLrem IMEJP10 foldercopy /y %IMEBinSrc% System32 IME IMEJP10 IMJPAPI.DLL  %WinPEWinDir% System32 IME IMEJP10 IMJPAPI.DLLcopy /y %IMEBinSrc% System32 IME IMEJP10 IMJPTIP.DLL  %WinPEWinDir% System32 IME IMEJP10 IMJPTIP.DLLcopy /y %IMEBinSrc% System32 IME IMEJP10 IMJPMGR.EXE  %WinPEWinDir% System32 IME IMEJP10 IMJPMGR.EXErem shared foldercopy /y %IMEBinSrc% System32 IME shared IMEAPIS.DLL   %WinPEWinDir% System32 IME shared IMEAPIS.DLLcopy /y %IMEBinSrc% System32 IME shared IMETIP.DLL    %WinPEWinDir% System32 IME shared IMETIP.DLLcopy /y %IMEBinSrc% System32 IME shared IMJKAPI.DLL   %WinPEWinDir% System32 IME shared IMJKAPI.DLLcopy /y %IMEBinSrc% System32 IME shared MSCAND20.DLL  %WinPEWinDir% System32 IME shared MSCAND20.DLLrem Creating some batch files...@echo @echo off                                                   >  %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MSUTB.DLL                   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MsCtfMonitor.DLL            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IMJP10K.DLL                 >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared IMETIP.DLL       >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared IMEAPIS.DLL      >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared IMJKAPI.DLL      >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared MSCAND20.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME IMEJP10 IMJPTIP.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME IMEJP10 IMJPAPI.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@rem @echo REG ADD HKLM Software Microsoft CTF /v StartOnNoTaskEng /t REG_DWORD /d 1 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEJP                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEJP 10.0                   ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEJP 10.0 directories       ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEJP 10.0 directories /v DictionaryPath /t REG_EXPAND_SZ /d %%SystemRoot%% IME IMEJP10 DICTS   ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEJP 10.0 directories /v ModulePath     /t REG_EXPAND_SZ /d %%SystemRoot%% System32 IME IMEJP10 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {03B5835F-F03C-411B-9CE2-AA23E1171E36}                                                                                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {03B5835F-F03C-411B-9CE2-AA23E1171E36} LanguageProfile                                                                        ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {03B5835F-F03C-411B-9CE2-AA23E1171E36} LanguageProfile 0x00000411                                                             ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {03B5835F-F03C-411B-9CE2-AA23E1171E36} LanguageProfile 0x00000411 {A76C93D9-5523-4E90-AAFA-4DB112F9AC76}                      ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {03B5835F-F03C-411B-9CE2-AA23E1171E36} LanguageProfile 0x00000411 {A76C93D9-5523-4E90-AAFA-4DB112F9AC76} /v Enable /t REG_DWORD /d 1                                                                                                     ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem                                                                                                            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000411                                                                                                 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31}                                                          ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000                                                 ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v CLSID /d {03B5835F-F03C-411B-9CE2-AA23E1171E36}  ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v Profile /d {A76C93D9-5523-4E90-AAFA-4DB112F9AC76}  ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v KeyboardLayout /t REG_DWORD /d 0            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder Language /v 00000000 /d 00000411            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF HiddenDummyLayouts /v 00000411 /d 00000411            ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Default /d {03B5835F-F03C-411B-9CE2-AA23E1171E36} /f         ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Profile /d {A76C93D9-5523-4E90-AAFA-4DB112F9AC76} /f         ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000411 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v KeyboardLayout /t REG_DWORD /d 04110411 /f                   ^> nul >> %WinPEWinDir% System32 IME IMEReg.CMD@echo start CTFMON.EXE  >> %WinPEWinDir% System32 IME IMEReg.CMD@if not exist %WinPEWinDir% System32 startnet.org copy %WinPEWinDir% System32 startnet.cmd %WinPEWinDir% System32 startnet.org@echo @echo off                               >  %WinPEWinDir% System32 STARTNET.CMD@echo echo Preparing WinPE ...                >> %WinPEWinDir% System32 STARTNET.CMD@type %WinPEWinDir% System32 STARTNET.org     >> %WinPEWinDir% System32 STARTNET.CMD@echo @echo.                                  >> %WinPEWinDir% System32 STARTNET.CMD@echo Call %%WinDir%% System32 IME IMEReg.CMD >> %WinPEWinDir% System32 STARTNET.CMDendlocal

• To add support for a Korean IME, paste this script to a new file that is named WinPEIMEKR.txt.

echo Preparing IME folder for WinPE.setlocalset WinPEWinDir=<Path to Windows Directory of your WinPE image (i.e. C: myWinPE Windows)>set IMEBinSrc=%windir%md %WinPEWinDir% IMEmd %WinPEWinDir% IME IMEKR8md %WinPEWinDir% IME IMEKR8 DICTSmd %WinPEWinDir% System32 IMEmd %WinPEWinDir% System32 IME IMEKR8md %WinPEWinDir% System32 IME IMEKR8 DICTSmd %WinPEWinDir% System32 IME sharedrem Fonts foldercopy /y %IMEBinSrc% Fonts gulim.ttc  %WinPEWinDir% Fonts gulim.ttcrem SYSTEM32 folder (Cicero)copy /y %IMEBinSrc% System32 CTFMON.EXE  %WinPEWinDir% System32 CTFMON.EXEcopy /y %IMEBinSrc% System32 MSUTB.DLL   %WinPEWinDir% System32 MSUTB.DLLcopy /y %IMEBinSrc% System32 MsCtfMonitor.DLL   %WinPEWinDir% System32 MsCtfMonitor.DLLrem DICTS foldercopy /y %IMEBinSrc% IME IMEKR8 DICTS IMKRHJD.LEX %WinPEWinDir% IME IMEKR8 DICTS IMKRHJD.LEXrem SYSTEM32 foldercopy /y %IMEBinSrc% System32 IMKR80.IME  %WinPEWinDir% System32 IMKR80.IMErem IMEKR8 foldercopy /y %IMEBinSrc% System32 IME IMEKR8 IMKRAPI.DLL  %WinPEWinDir% System32 IME IMEKR8 IMKRAPI.DLLcopy /y %IMEBinSrc% System32 IME IMEKR8 IMKRTIP.DLL  %WinPEWinDir% System32 IME IMEKR8 IMKRTIP.DLLcopy /y %IMEBinSrc% System32 IME IMEKR8 DICTS IMKRHJD.DLL  %WinPEWinDir% System32 IME IMEKR8 DICTS IMKRHJD.DLLrem shared foldercopy /y %IMEBinSrc% System32 IME shared IMEAPIS.DLL   %WinPEWinDir% System32 IME shared IMEAPIS.DLLcopy /y %IMEBinSrc% System32 IME shared IMETIP.DLL    %WinPEWinDir% System32 IME shared IMETIP.DLLcopy /y %IMEBinSrc% System32 IME shared IMJKAPI.DLL   %WinPEWinDir% System32 IME shared IMJKAPI.DLLcopy /y %IMEBinSrc% System32 IME shared MSCAND20.DLL  %WinPEWinDir% System32 IME shared MSCAND20.DLLrem Creating some batch files...@echo @echo off                                                   >  %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MSUTB.DLL                   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 MsCtfMonitor.DLL            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared IMETIP.DLL       >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared IMEAPIS.DLL      >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared IMJKAPI.DLL      >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME shared MSCAND20.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME IMEKR8 IMKRTIP.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME IMEKR8 IMKRAPI.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REGSVR32 /S %%WinDir%% System32 IME IMEKR8 DICTS IMKRHJD.DLL     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft CTF /v StartOnNoTaskEng /t REG_DWORD /d 1 >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEKR                        >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEKR 8.0                   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEKR 8.0 /v Dictionary /t REG_EXPAND_SZ /d %%SystemRoot%% IME IMEKR8 DICTS IMKRHJD.LEX   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEKR 8.0 directories       >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEKR 8.0 directories /v DictionaryPath /t REG_EXPAND_SZ /d %%SystemRoot%% IME IMEKR8 DICTS   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKLM Software Microsoft IMEKR 8.0 directories /v ModulePath     /t REG_EXPAND_SZ /d %%SystemRoot%% System32 IME IMEKR8 >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {A028AE76-01B1-46C2-99C4-ACD9858AE02F}                                                                                        >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {A028AE76-01B1-46C2-99C4-ACD9858AE02F} LanguageProfile                                                                        >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {A028AE76-01B1-46C2-99C4-ACD9858AE02F} LanguageProfile 0x00000412                                                             >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {A028AE76-01B1-46C2-99C4-ACD9858AE02F} LanguageProfile 0x00000412 {B5FE1F02-D5F2-4445-9C03-C568F23C99A1}                      >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF TIP {A028AE76-01B1-46C2-99C4-ACD9858AE02F} LanguageProfile 0x00000412 {B5FE1F02-D5F2-4445-9C03-C568F23C99A1} /v Enable /t REG_DWORD /d 1                                                                                                     >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem                                                                                                            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000412                                                                                                 >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31}                                                          >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000                                                 >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v CLSID /d {A028AE76-01B1-46C2-99C4-ACD9858AE02F}  >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v Profile /d {B5FE1F02-D5F2-4445-9C03-C568F23C99A1}  >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder AssemblyItem 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} 00000000 /v KeyboardLayout /t REG_DWORD /d 0            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF SortOrder Language /v 00000000 /d 00000412            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF HiddenDummyLayouts /v 00000412 /d 00000412            >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Default /d {A028AE76-01B1-46C2-99C4-ACD9858AE02F} /f         >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v Profile /d {B5FE1F02-D5F2-4445-9C03-C568F23C99A1} /f         >> %WinPEWinDir% System32 IME IMEReg.CMD@echo REG ADD HKCU Software Microsoft CTF Assemblies 0x00000412 {34745C63-B2F0-4784-8B67-5E12C8701A31} /v KeyboardLayout /t REG_DWORD /d 04120412 /f                   >> %WinPEWinDir% System32 IME IMEReg.CMD@echo start CTFMON.EXE  >> %WinPEWinDir% System32 IME IMEReg.CMD@if not exist %WinPEWinDir% System32 startnet.org copy %WinPEWinDir% System32 startnet.cmd %WinPEWinDir% System32 startnet.org@echo @echo off                               >  %WinPEWinDir% System32 STARTNET.CMD@echo echo Preparing WinPE ...                >> %WinPEWinDir% System32 STARTNET.CMD@type %WinPEWinDir% System32 STARTNET.org     >> %WinPEWinDir% System32 STARTNET.CMD@echo @echo.                                  >> %WinPEWinDir% System32 STARTNET.CMD@echo Call %%WinDir%% System32 IME IMEReg.CMD >> %WinPEWinDir% System32 STARTNET.CMDendlocal

2. Open the file that you created in step 1 in a text editor. For example, open the file in Notepad.
3. Select the following text, and then type C: WinPE_x86 to replace it.

<Path to Windows Directory of your WinPE image (i.e. C: myWinPE Windows)>

4. Save the file, and then exit Notepad.
5. Rename the file by using the .cmd file name extension. For example, rename WinPEIMETC.txt as WinPEIMETC.cmd.

Note This step creates a batch file that copies files to the C: WinPE_x86 folder. The batch file also creates a Startnet.cmd file in the C: MyWinPE Windows System32 IME folder.

6. Install the OPK or the Windows AIK.
7. Start the Windows PE Tools command prompt by using an account that has administrative credentials.

Note Make sure that you start a version of Windows PE that has the appropriate language packs installed. For example, for Japanese IME support, the Japanese language packs must be installed. For more information about how to add and configure language packs for Windows PE, see the Winpe.chm file.

8. Type the following commands. After each line, press ENTER.

Note If you are using a localized OPK or a localized AIK, you do not have to follow this step. By default, the localized version uses these settings.

copype x86 C: WinPE_x86
imagex /mountrw C: WinPE_x86 winpe.wim 1 C: WinPE_x86 mount
9. Type one of the following sets of commands, according to the language you want to use. After each line, press ENTER.

• Simplified Chinese

peimg /install=*zh-cn* C: WinPE_x86 mount
peimg /lang=zh-cn C: WinPE_x86 mount
• Traditional Chinese

peimg /install=*zh-tw* C: WinPE_x86 mount
peimg /lang=zh-tw C: WinPE_x86 mount
• Japanese

peimg /install=*ja-jp* C: WinPE_x86 mount
peimg /lang=ja-jp C: WinPE_x86 mount
• Korean

peimg /install=*ko-kr* C: WinPE_x86 mount
peimg /lang=ko-kr C: WinPE_x86 mount
10. Run the batch file that you created in step 5.
11. Type the following commands at the Windows PE Tools command prompt. After each line, press ENTER.

imagex /unmount /commit C: WinPE_x86 mount
imagex /export C: WinPE_x86 winpe.wim 1 C: WinPE_x86 boot.wim
copy /y C: WinPE_x86 boot.wim C: WinPE_x86 ISO sources boot.wim
oscdimg -n -bC: WinPE_x86 etfsboot.com C: WinPE_x86 ISO C: WinPE_JPN_IME.iso
12. Exit the Windows PE Tools command prompt.

Back to the top

Known limitations

• In Windows PE, IME functionality does not work in command prompt windows.
• After all IME windows are closed, you must run Ctfmon.exe.
• When you use an IME in Windows PE, the Software Keyboard, the IME Configuration User Interface, and Embedded Software Development Process (EUDP) tools are unavailable.

Back to the top

REFERENCES

For more information about Windows PE and about Windows PE licensing, visit the following Microsoft Web site:

http://www.microsoft.com/licensing/sa/benefits/winpe.mspx (http://www.microsoft.com/licensing/sa/benefits/winpe.mspx)

For more information, see the WAIK.chm file that is included in the Windows AIK. Or, see the OPK.chm file that is included in the OPK.

Back to the top


APPLIES TO
• Windows Vista Business
• Windows Vista Enterprise
• Windows Vista Home Basic
• Windows Vista Home Premium
• Windows Vista Starter
• Windows Vista Ultimate
• Windows Vista Home Premium 64-bit edition
• Windows Vista Home Basic 64-bit edition
• Windows Vista Ultimate 64-bit edition
• Windows Vista Business 64-bit edition

Back to the top

Keywords: 
kbtshoot kbinfo KB926181

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image