哈哈,这个我之前在做8PE时候弄过。这是我当时写的bat
切记 Win8的IME的这两个文件必须用Win7的代替 (msctf.dll msutb.dll)
- @echo off
- ::mode con lines=12 cols=50
- ::设置cmd窗口颜色,背景色为绿色,前背景色为亮白色
- color 2f
- title Win8x64 IME所需文件 By:金
- ::cmd中跳转到当前目录下
- cd /d "%~dp0"
- set wds=%~1
- echo.
- echo.
- echo.
- echo.
- echo 请设置Windows目录所在位置。
- echo.
- echo.
- echo.
- set /p wds=输入路径或拖动目录到此,留空为本系统Windows目录:
- ::判断上面命令所获取到的目录是否存在,存在则复制此目录下的文件、否则使用C盘下的Windows目录
- if not exist "%wds%" (
- set wds=%systemroot%
- ) else (
- echo.%WDS%
- )
- ::复制文件
- ::Win8的IME的这两个文件必须用Win7的代替 (msctf.dll msutb.dll)
- ::=====================================
- call :copySys32 CTFMON.EXE
- call :copySys32 input.dll
- call :copySys32 inputswitch.dll
- call :copySys32 MsCtfMonitor.DLL
- call :copySys32 msctf.dll
- call :copySys32 msctfp.dll
- call :copySys32 msctfui.dll
- call :copySys32 msctfime.ime
- call :copySys32 MSUTB.DLL
- call :copySys32 kbdusa.dll
- call :copySys32 kbdus.dll
- call :copySys32 kbduk.dll
- call :copySys32 imm32.dll
- call :copySys32 msimtf.dll
- ::SysWOW64
- call :copyWOW64 msctf.dll
- call :copyWOW64 msutb.dll
- call :copyWOW64 MsCtfMonitor.DLL
- call :copyWOW64 msctf.dll
- call :copyWOW64 msctfp.dll
- call :copyWOW64 msctfui.dll
- call :copyWOW64 msctfime.ime
- call :copyWOW64 kbdusa.dll
- call :copyWOW64 kbdus.dll
- call :copyWOW64 kbduk.dll
- ::Exit
- cls
- echo.文件复制完成&pause>>nul
- exit
- :copyWOW64
- echo a|xcopy %wds%\SysWOW64\%1 SysWOW64\ /h
- ::不管有没有mui文件都尝试复制
- echo a|xcopy %wds%\SysWOW64\zh-cn\%1.mui SysWOW64\zh-cn\ /h
- goto :eof
- :copySys32
- echo a|xcopy %wds%\System32\%1 System32\ /h
- ::不管有没有mui文件都尝试复制
- echo a|xcopy %wds%\System32\zh-cn\%1.mui System32\zh-cn\ /h
- goto :eof
复制代码
所需的注册表
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\Assemblies]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\Assemblies\0x00000804]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\Assemblies\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}]
- "Default"="{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}"
- "Profile"="{FA550B04-5AD7-411F-A5AC-CA038EC515D7}"
- "KeyboardLayout"=dword:08040804
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\DirectSwitchHotkeys]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\HiddenDummyLayouts]
- "00000804"="00000804"
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\MSUTB]
- "Left"=dword:0000043a
- "Top"=dword:000002b2
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\RemoteSession]
- "CLSID"=""
- "Profile"=""
- "KeyboardLayout"=dword:00000000
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000409]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000409\{34745C63-B2F0-4784-8B67-5E12C8701A31}]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000409\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000]
- "CLSID"="{00000000-0000-0000-0000-000000000000}"
- "KeyboardLayout"=dword:04090409
- "Profile"="{00000000-0000-0000-0000-000000000000}"
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\AssemblyItem\0x00000804\{34745C63-B2F0-4784-8B67-5E12C8701A31}\00000000]
- "CLSID"="{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}"
- "KeyboardLayout"=dword:00000000
- "Profile"="{FA550B04-5AD7-411F-A5AC-CA038EC515D7}"
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\SortOrder\Language]
- "00000000"="00000804"
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\TIP]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile\0x00000804]
- [HKEY_LOCAL_MACHINE\8pe_def\Software\Microsoft\CTF\TIP\{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}\LanguageProfile\0x00000804\{FA550B04-5AD7-411F-A5AC-CA038EC515D7}]
- "Enable"=dword:00000001
复制代码
reg bat都在里面
IME.7z
(1.44 KB, 下载次数: 69)
|