reg add HKLM\SOFTWARE\Microsoft\KunlunInput /v InstallDir /t REG_SZ /d "%ProgramFiles%\Microsoft Bing Pinyin\\" /f
md "%ProgramFiles%\Microsoft Bing Pinyin\Dicts"
md "%ProgramFiles%\Microsoft Bing Pinyin\Skins"
copy Dicts\*.* "%ProgramFiles%\Microsoft Bing Pinyin\Dicts\"
copy Skins\*.* "%ProgramFiles%\Microsoft Bing Pinyin\Skins\"
copy *.bin "%ProgramFiles%\Microsoft Bing Pinyin\"
copy *.lmx "%ProgramFiles%\Microsoft Bing Pinyin\"
copy ConfigurationPanel.exe "%ProgramFiles%\Microsoft Bing Pinyin\"
if exist %SystemRoot%\syswow64 goto x64
goto x32
:x64
copy kunlun64.ime kunlun.ime
copy kunlun.ime %SystemRoot%\syswow64
copy kunlun.ime %SystemRoot%\system32
ime_install64.exe /i kunlun.ime
goto end
:x32
copy kunlun32.ime kunlun.ime
copy kunlun.ime %SystemRoot%\system32
ime_install.exe /i kunlun.ime
:end
del kunlun.ime
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0200804" /v "Layout Text" /t REG_SZ /d 必应拼音输入法 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0200804" /v "Layout Display Name" /t REG_SZ /d 必应拼音输入法 /f
exit
