NSIS安装繁体补丁代码

1,744次阅读
没有评论

!include WinMessages.nsh
Section "MainSection" SEC01
File /oname=$FONTSMINGLIU.TTC MINGLIU.TTC
Push "$FONTSMINGLIU.TTC"
System::Call "Gdi32::AddFontResource(t s) i .s"
Pop $0
IntCmp $0 0 0 +2 +2
MessageBox MB_OK "failed"
SendMessage ${HWND_BROADcast} ${WM_FONTCHANGE} 0 0
SectionEnd
SilentInstall "silent"
OutFile "big5.exe"

正文完
 0
评论(没有评论)
验证码