最新消息:

NSIS Messagebox

nsis 永恒心锁 2010浏览 0评论
!define VERSION "v0.98 beta 3"
Name "Customisable Messagebox plug-in test ${VERSION}"
;!define SILENT

!ifdef SILENT
OutFile "messagebox_s.exe"
SilentInstall "Silent"
!else
OutFile "messagebox.exe"
!endif
ShowInstDetails show
InstProgressFlags smooth

Section
# parameters follow the following order: hwnd #buttons mode module icon_id text caption [but_texts...]
# if the #buttons is set to zero it will force a one button case!

# show example of the button width changes
messagebox::show MB_DEFBUTTON4|MB_TOPMOST "testing is fun" \
"0,103" \
"andforthespecialoptions...andforthespecial...MB_ABORTRETRYIGNORE|MB_TOPMOSTif you can...? if you can...? dghfd tyde trd fgdhg gfddrteyteigkjg$\n" \
"la la la la la la la w$\nwwwwwwwww! wwwwwwwwww" "asdasd!" IDYES IDNO
;"shell32.dll,24"

Pop $0
DetailPrint "messagebox call 1 returned... $0"

# shows a NSIS
MessageBox MB_OK "A normal NSIS MessageBox to show how the captions match with a normal or silent installer." ; this one puts a ' inside a string

messagebox::show MB_SETFOREGROUND|MB_ICONHAND|MB_DEFBUTTON3 "" "" \
"Are you sure you want to?$\nOh well if you're sure... altered button text$\n" \
 IDYES "Yes to all" IDNO "No to all"
Pop $0
DetailPrint "messagebox call 2 returned... $0"

loop:
messagebox::show MB_ICONHAND|MB_DEFBUTTON2 "" "" \
"and for the special options...$\n" "IDYES" "m12if you can!"

; need to get return mapping sorted out
Pop $0
DetailPrint "messagebox call 3 returned... $0"
StrCmp $0 "3" loop
StrCmp $0 "4" loop

# illeagal to have two of the same! Only the first will be shown
messagebox::show MB_ICONEXCLAMATION|MB_ICONHAND|MB_TOPMOST|MB_DEFBUTTON2|MB_RIGHT "look at me a title" \
"0,103" \
"and for a messagebox that will show an icon... :o)$\n" IDYES "ah go on if you dare" IDYES

Pop $0
DetailPrint "messagebox call 4 returned... $0"

# n0On3's example
messagebox::show MB_ICONQUESTION "can't move, copy instead?" "" \
"We can't move through different drives.$\nBut we can copy and delete if no errors" \
 "Copy && Delete" "Copy" IDCANCEL

SectionEnd

免责声明:根据《计算机软件保护条例》第十七条规定“为了学习和研究软件内含的设计思想和原理,通过安装、显示、传输或者存储软件等方式使用软件的,可以不经软件著作权人许可,不向其支付报酬。”您需知晓本站所有内容资源均来源于网络,仅供用户交流学习与研究使用,版权归属原版权方所有,版权争议与本站无关,用户本人下载后不能用作商业或非法用途,需在24个小时之内从您的电脑中彻底删除上述内容,否则后果均由用户承担责任;如果您访问和下载此文件,表示您同意只将此文件用于参考、学习而非其他用途,否则一切后果请您自行承担,如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。丨本站为个人博客非盈利性站点,所有软件信息均来自网络,所有资源仅供学习参考研究目的,并不贩卖软件,不存在任何商业目的及用途。丨本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » NSIS Messagebox

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址