用NSIS脚本安装输入法
在NSIS中安装输入法,可使用以下代码:
1 2 3 4 5 6 7 8 9 10 11 | SetOutPath $SYSDIR File WBIME.ime Push "五笔输入法" Push "$SYSDIR\WBIME.ime" System::Call "Imm32::ImmInstallIME(t s, t s) i .s" System::Call "Imm32::ImmIsIME(i s) i .s" Pop $0 IntCmp $0 1 0 +3 +3 MessageBox MB_OK "输入法安装成功" Goto +2 MessageBox MB_OK "输入法安装失败" |