最新消息:

创建关于按钮

nsis 永恒心锁 1585浏览 0评论
SetCompressor /SOLID lzma
SetCompress force
XPStyle on
!include "MUI.nsh"
!include "创建关于按钮.nsh"
OutFile "创建关于按钮.EXE"
Name "创建关于按钮"
SetFont /LANG=2052 "tahoma" 8
!define MUI_CUSTOMFUNCTION_GUIINIT MyGUIInit
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "创建关于按钮.nsi"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!define MUI_CUSTOMFUNCTION_UNGUIINIT Un.MyGUIInit
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
!insertmacro MUI_LANGUAGE "SimpChinese"
Section
WriteUninstaller "$EXEDIRUninst.EXE"
SectionEnd
Section "Uninstall"
SectionEnd
!macro MYMACRO un
Function ${un}MyGUIInit
!insertmacro CreateAboutButton "Ansifa" 1200 120 ${un}ButtonADD
!insertmacro CreateLink "Ansifa" 1199 120 "www.pythonschool.com"
!insertmacro CreateMenu "Ansifa (&C)" ${un}MenuADD 100
FunctionEnd
Function ${un}ButtonADD
MessageBox MB_OK '你点击了按钮'
FunctionEnd
Function ${un}MenuADD
MessageBox MB_OK '你点击了菜单项'
FunctionEnd
!macroend
; 插入安装/卸载函数
!insertmacro MYMACRO ""
!insertmacro MYMACRO un.
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 创建关于按钮

您必须 登录 才能发表评论!