用NSIS脚本注册字体
1 2 3 4 5 6 7 8 9 10 | !include WinMessages.nshSection "MainSection" SEC01File /oname=$FONTS\tahoma.ttf tahoma.ttfPush "$FONTS\tahoma.ttf"System::Call "Gdi32::AddFontResource(t s) i .s"Pop $0IntCmp $0 0 0 +2 +2MessageBox MB_OK "注册字体失败"SendMessage ${HWND_BROADcast} ${WM_FONTCHANGE} 0 0SectionEnd |

