杉宫竹苑工作室

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

QQ 2010 版

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

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

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

x
  1. !include "MUI2.nsh"

  2. !define /math WM_NOTIFY_OUTTER_NEXT ${WM_USER} + 0x8

  3. !define APP_NAME "QQ2010"

  4. Name "${APP_NAME}"
  5. OutFile "${APP_NAME}.exe"
  6. Caption "${APP_NAME} InstallShield Wizard"
  7. InstallDir $TEMP
  8. BrandingText "Install Shield"

  9. !define MUI_ABORTWARNING

  10. !define MUI_WELCOMEPAGE_TEXT "The InstallShield(R) Wizard will complete the installation of $(^Name) on your computer. To continue, click Next."
  11. !define MUI_ABORTWARNING_TEXT "$\r$\nAre you sure to quit $(^Name) InstallShield(R) Wizard?$\t$\r$\n$\r$\n$\r$\n"
  12. !define MUI_ABORTWARNING_CANCEL_DEFAULT

  13. !define MUI_WELCOMEFINISHPAGE_BITMAP Binary.NewBinary5.bmp

  14. !define MUI_HEADERIMAGE
  15. !define MUI_HEADERIMAGE_RIGHT
  16. !define MUI_HEADERIMAGE_BITMAP Binary.NewBinary1.bmp

  17. !define MUI_WELCOMEPAGE_TITLE "Welcome to $(^Name) InstallShield(R) Wizard"
  18. !define MUI_FINISHPAGE_TITLE "InstallShield(R) Wizard Complete"

  19. !define MUI_CUSTOMFUNCTION_ABORT onUserAbort

  20. !define MUI_PAGE_CUSTOMFUNCTION_PRE SetFlagValue1
  21. !insertmacro MUI_PAGE_WELCOME
  22. !define MUI_PAGE_CUSTOMFUNCTION_PRE SetFlagValue2
  23. !insertmacro MUI_PAGE_LICENSE ${__FILE__}
  24. !define MUI_PAGE_CUSTOMFUNCTION_PRE SetFlagValue3
  25. !insertmacro MUI_PAGE_DIRECTORY
  26. !insertmacro MUI_PAGE_INSTFILES
  27. !define MUI_PAGE_CUSTOMFUNCTION_SHOW ChangeFinishText
  28. !insertmacro MUI_PAGE_FINISH

  29. !insertmacro MUI_LANGUAGE "English"

  30. Var Abort.Flag

  31. Section Install

  32.     SetDetailsPrint textonly
  33.     DetailPrint 'Installing...'
  34.     SetDetailsPrint listonly
  35.     SetOutPath $INSTDIR
  36.     Sleep 500
  37.     Sleep 500
  38.     Sleep 500

  39. SectionEnd

  40. Function SetFlagValue1

  41.     StrCpy $R0 5

  42. FunctionEnd

  43. Function SetFlagValue2

  44.     StrCpy $R0 4

  45. FunctionEnd

  46. Function SetFlagValue3

  47.     StrCpy $R0 3

  48. FunctionEnd

  49. Function ChangeFinishText

  50.     ${If} $Abort.Flag = 1
  51.       ${NSD_SetText} $mui.FinishPage.Text "The InstallShield(R) Wizard was interrupted before $(^Name) could be completely installed.\
  52.       The system has not been modified. To install this program at a later time, run the installation again.$\r$\n$\r$\n$\r$\n\
  53.       Click finish to exit the wizard."
  54.       GetDlgItem $0 $HWNDPARENT 2
  55.       System::Call 'user32::DestroyWindow(ir0)'
  56.       GetDlgItem $0 $HWNDPARENT 3
  57.       System::Call 'user32::DestroyWindow(ir0)'
  58.     ${EndIf}

  59. FunctionEnd

  60. Function .onInit

  61.     StrCpy $Abort.Flag 0

  62. FunctionEnd

  63. Function onUserAbort

  64.     StrCpy $Abort.Flag 1
  65.     SendMessage $HWNDPARENT ${WM_NOTIFY_OUTTER_NEXT} $R0 ""
  66.     Abort

  67. FunctionEnd
复制代码


回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 15:32 , Processed in 0.142194 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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