杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1932|回复: 0

NSIS 火焰特效

[复制链接]
发表于 2017-2-26 11:32:54 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x

613052499276577187.jpg

  1. /*
  2. if you have this effects,please keep!

  3. Writer:【Mr.Z_production ·JUAN】
  4. http://blog.163.com/53_54
  5. Thanks:Restools,zhfi,X-Star
  6. */
  7. !AddPluginDir "."
  8. !AddIncludeDir "."

  9. !include MUI.nsh

  10. ; --------------------------------------------------
  11. ; General settings.

  12. Name "Flame_Effects Example"
  13. OutFile "NSIS_fire.exe"
  14. SetCompressor /SOLID lzma

  15. ReserveFile "${NSISDIR}Pluginssystem.dll"
  16. ReserveFile firectrl.dll

  17. ; --------------------------------------------------
  18. ; MUI interface settings.
  19. !define MUI_FINISHPAGE_NOAUTOCLOSE
  20. ; --------------------------------------------------
  21. ; Insert MUI pages.
  22. !define MUI_WELCOMEFINISHPAGE_BITMAP WizModernImage-Is.bmp

  23. ; Installer pages
  24. !define MUI_PAGE_CUSTOMFUNCTION_PRE pre
  25. !define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
  26. !define MUI_WELCOMEPAGE_TEXT "About Flame effects:1.Restools with firectrl.dll 2.zhifi Waterctrl_Example 3.x-star ???? 5.JUAN'S COOK 6. [url]http://www.blog.163.com/53_54/[/url]"
  27. !insertmacro MUI_PAGE_WELCOME

  28. !insertmacro MUI_PAGE_INSTFILES

  29. !define MUI_PAGE_CUSTOMFUNCTION_Pre pre
  30. !define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
  31. !insertmacro MUI_PAGE_FINISH

  32. ; --------------------------------------------------
  33. ; Languages.

  34. !insertmacro MUI_LANGUAGE "english"

  35. Function .onGUIEnd
  36. SetPluginUnload manual
  37. firectrl::disablefire
  38. System::Free
  39. FunctionEnd

  40. Function .onInit
  41. InitPluginsDir
  42. SetOutPath $PLUGINSDIR
  43. File firectrl.dll
  44. SetOutPath $TEMP
  45. FunctionEnd

  46. Function Pre
  47.   System::Call 'user32::LoadImage(i,t,i,i,i,i,) i (0,"$PLUGINSDIRmodern-wizard.bmp",0,0,0,0x10) .s'
  48. Pop $R0
  49. System::Call '$PLUGINSDIR irectrl::enablefire(i,i,i,i,i) i ($HWNDPARENT,0,0,$R0,50)'
  50. FunctionEnd

  51. Function leave
  52. System::Call '$PLUGINSDIR irectrl::disablefire()'
  53. FunctionEnd

  54. Section "Dummy" SecDummy
  55. SectionEnd
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 12:32 , Processed in 0.118723 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表