|
今天发现,只能用下面的代码来安装了,用 pecmd CALL $imm32,ImmInstallIMEW,%windir%\System32\SogouWB.IME,搜狗五笔 能解决卡的问题,唯一不好的就是在谷歌浏览器绿色版中候选窗口无法跟随光标,不然用下面的代码就OK了。
- @echo off
- cd /d "%~dp0%"
- for /f "delims=" %%i in ('dir/ad/b/o-n "%CD%"') do (set sgdir=%%i)
- reg add "HKLM\SOFTWARE\SogouWBInput" /f /ve /t REG_SZ /d "%CD%"
- reg add "HKLM\SOFTWARE\SogouWBInput" /f /v "Region" /t REG_SZ /d "0000_sogou_wubi_55e"
- reg add "HKLM\SOFTWARE\SogouWBInput" /f /v "StartMenuFolder" /t REG_SZ /d "搜狗五笔"
- reg add "HKLM\SOFTWARE\SogouWBInput" /f /v "Version" /t REG_SZ /d "%sgdir%"
- reg add "HKLM\SOFTWARE\SogouWBInput" /f /v "VersionType" /t REG_SZ /d "final"
- IF not EXIST "%ProgramFiles(x86)%" (
- copy /Y "%CD%\ime\SogouWB.ime" "%windir%\System32"
- copy /Y "%CD%\ime\SogouWBTSF.ime" "%windir%\System32\SogouWBTSF.ime"
- ) else (
- copy /Y "%CD%\ime\SogouWB_x64.ime" "%windir%\System32\SogouWB.ime"
- copy /Y "%CD%\ime\SogouWB.ime" "%windir%\SysWoW64"
- copy /Y "%CD%\ime\SogouWBTSF_x64.ime" "%windir%\System32\SogouWBTSF.ime"
- copy /Y "%CD%\ime\SogouWBTSF.ime" "%windir%\SysWoW64\SogouWBTSF.ime"
- reg add "HKLM\SOFTWARE\Wow6432Node\SogouWBInput" /f /ve /t REG_SZ /d "%CD%"
- reg add "HKLM\SOFTWARE\Wow6432Node\SogouWBInput" /f /v "Region" /t REG_SZ /d "0000_sogou_wubi_55e"
- reg add "HKLM\SOFTWARE\Wow6432Node\SogouWBInput" /f /v "StartMenuFolder" /t REG_SZ /d "搜狗五笔"
- reg add "HKLM\SOFTWARE\Wow6432Node\SogouWBInput" /f /v "Version" /t REG_SZ /d "%sgdir%"
- reg add "HKLM\SOFTWARE\Wow6432Node\SogouWBInput" /f /v "VersionType" /t REG_SZ /d "final"
- )
- xcopy /Y "%CD%\ime\env.ini" "%USERPROFILE%\AppData\LocalLow\SogouWB"
- pecmd CALL $imm32,ImmInstallIMEW,%windir%\System32\SogouWB.IME,搜狗五笔
- pecmd.exe EXEC !ctfmon.exe
- exit
复制代码
|
|