NotifyIcon是NSIS支持系统托盘的插件

/*
NotifyIcon是NSIS支持系统托盘的插件
NotifyIcon支持自定义托盘图标,自定义托盘说明文字提示文字
*/
Name "NotifyIcon Example"
OutFile "notifyicon.exe"
Icon "${NSISDIR}ContribGraphicsIconsmodern-install-colorful.ico"
XPStyle on
Section "ThisNameIsIgnoredSoWhyBother?"
 InitPluginsDir
 NotifyIcon::Icon /NOUNLOAD "iy" 103
 NotifyIcon::Icon /NOUNLOAD "b" "NSIS installer" "Starting installation..."
 NotifyIcon::Icon /NOUNLOAD "p" "Completed %d%%"
 Sleep 4000
 NotifyIcon::Icon /NOUNLOAD "!pt" "Tip is back!"
 Sleep 2000
 File "/oname=$PLUGINSDIRicon.ico" "${NSISDIR}ContribGraphicsIconsmodern-install-colorful.ico"
 NotifyIcon::Icon /NOUNLOAD ".fb" "$PLUGINSDIRicon.ico" "NSIS installer" "Installation is finished!"
 Sleep 3000
 NotifyIcon::Icon /NOUNLOAD "f" "$PLUGINSDIRicon.ico"
 Sleep 4000
SectionEnd
Function .onGUIEnd
 NotifyIcon::Icon "r"
FunctionEnd
; eof
© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容