1
0

ui.nsh 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. !ifndef NULLSOFT_WINAMP_INSTALLER_UI_HEADER
  2. !define NULLSOFT_WINAMP_INSTALLER_UI_HEADER
  3. !include ".\mui2.nsh"
  4. !include ".\waui.nsh"
  5. !include ".\express_mode.nsh"
  6. ReserveFile "${HEADER_IMAGE_PATH}"
  7. ReserveFile "${WELCOMEFINISH_IMAGE_PATH}"
  8. ReserveFile "${UNINSTALLER_WELCOMEFINISH_IMAGE_PATH}"
  9. !define MUI_ICON ".\res\install.ico"
  10. !define MUI_UNICON ".\res\uninstall.ico"
  11. !ifndef _DEBUG
  12. !define MUI_ABORTWARNING
  13. !endif ;defined(_DEBUG)
  14. !define MUI_HEADERIMAGE
  15. !define MUI_HEADERIMAGE_BITMAP "${HEADER_IMAGE_PATH}"
  16. !define WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
  17. !define MUI_WELCOMEFINISHPAGE_BITMAP "${WELCOMEFINISH_IMAGE_PATH}"
  18. !define MUI_UNWELCOMEFINISHPAGE_BITMAP "${UNINSTALLER_WELCOMEFINISH_IMAGE_PATH}"
  19. !define MUI_CUSTOMFUNCTION_GUIINIT UI_OnInit
  20. ; Welcome Page
  21. !define MUI_WELCOMEPAGE_TITLE "$(IDS_PAGE_WELCOME_TITLE)"
  22. !define MUI_WELCOMEPAGE_TEXT "$(IDS_PAGE_WELCOME_TEXT)"
  23. !define MUI_PAGE_CUSTOMFUNCTION_SHOW UI_OnWelcomePageShow
  24. !insertmacro MUI_PAGE_WELCOME
  25. ; License Page
  26. !define MUI_LICENSEPAGE_TEXT_TOP "$(licenseTop)"
  27. !define MUI_PAGE_CUSTOMFUNCTION_PRE UI_OnLicensePagePre
  28. !define MUI_PAGE_CUSTOMFUNCTION_SHOW UI_OnLicensePageShow
  29. !insertmacro MUI_PAGE_LICENSE "${LICENSE_PATH}"
  30. ; Express Mode Page
  31. ${ExpressMode_InsertPage}
  32. ; Directory Page
  33. !define MUI_DIRECTORYPAGE_TEXT_TOP "$(directoryTop)"
  34. !define MUI_PAGE_CUSTOMFUNCTION_PRE UI_OnDirectoryPagePre
  35. !define MUI_PAGE_CUSTOMFUNCTION_SHOW UI_OnDirectoryPageShow
  36. !define MUI_PAGE_CUSTOMFUNCTION_LEAVE UI_OnDirectoryPageLeave
  37. !insertmacro MUI_PAGE_DIRECTORY
  38. ; Components Page
  39. !define MUI_COMPONENTSPAGE_TEXT_TOP "$(installWinampTop)${INSTALLER_TYPE_DESCRIPTION}"
  40. !define MUI_COMPONENTSPAGE_TEXT_COMPLIST "$(IDS_PAGE_COMPONENTS_COMPLIST)"
  41. !define MUI_COMPONENTSPAGE_SMALLDESC
  42. !define MUI_PAGE_CUSTOMFUNCTION_PRE UI_OnComponentsPagePre
  43. !define MUI_PAGE_CUSTOMFUNCTION_SHOW UI_OnComponentsPageShow
  44. !define MUI_CUSTOMFUNCTION_ONMOUSEOVERSECTION UI_OnMouseOverSection
  45. !insertmacro MUI_PAGE_COMPONENTS
  46. ; Components Page Descriptions
  47. !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  48. !insertmacro MUI_FUNCTION_DESCRIPTION_END
  49. ; StartMenu Page
  50. !define STARTMENUPAGE_CHECK_NEXT_BUTTON
  51. !insertmacro WAUI_PAGE_STARTMENU
  52. ; InstallProgress Page
  53. !insertmacro MUI_PAGE_INSTFILES
  54. ; Finish Page
  55. !ifdef _DEBUG
  56. !define MUI_FINISHPAGE_NOAUTOCLOSE
  57. !endif
  58. !define MUI_FINISHPAGE_TEXT_LARGE
  59. !define MUI_FINISHPAGE_TITLE "$(IDS_PAGE_FINISH_TITLE)"
  60. !define MUI_FINISHPAGE_TITLE_3LINES ; For compatibility with installer translations
  61. !define MUI_FINISHPAGE_TEXT "$(IDS_PAGE_FINISH_TEXT)"
  62. !define MUI_FINISHPAGE_SHOWREADME
  63. !define MUI_FINISHPAGE_SHOWREADME_TEXT "$(IDS_PAGE_FINISH_RUN)"
  64. !define MUI_FINISHPAGE_SHOWREADME_FUNCTION UI_OnFinishPageReadMe
  65. !ifdef _DEBUG
  66. !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
  67. !endif
  68. !define MUI_FINISHPAGE_LINK "$(IDS_PAGE_FINISH_LINK)"
  69. !define MUI_FINISHPAGE_LINK_LOCATION "http://www.winamp.com/"
  70. !define MUI_PAGE_CUSTOMFUNCTION_PRE UI_OnFinsihPagePre
  71. !insertmacro MUI_PAGE_FINISH
  72. !endif ;NULLSOFT_WINAMP_INSTALLER_UI_HEADER