1
0

installer.nsi 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. ; Winamp Skin Development Pack Installer
  2. ;--------------------------------
  3. ;Include Modern UI
  4. !include "MUI.nsh"
  5. ;--------------------------------
  6. ; The name of the installer
  7. Name "Winamp Skin Development Pack v5.9"
  8. ; The file to write
  9. OutFile "WinampSDP_59.exe"
  10. ; The default installation directory
  11. InstallDir $PROFILE\WinampSDP
  12. ; The text to prompt the user to enter a directory
  13. DirText "Select the installation folder for the Winamp Skin Development Pack:"
  14. ; automatically close the installer when done.
  15. AutoCloseWindow false
  16. ; hide the "show details" box
  17. ShowInstDetails show
  18. SetCompressor /SOLID lzma
  19. ;--------------------------------
  20. ;Interface Configuration
  21. !define MUI_HEADERIMAGE
  22. !define MUI_HEADERIMAGE_RIGHT
  23. !define MUI_HEADERIMAGE_BITMAP "modern-header.BMP"
  24. !define MUI_ABORTWARNING
  25. !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\classic-install.ico"
  26. !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\classic-uninstall.ico"
  27. ;--------------------------------
  28. Function .onInit
  29. # the plugins dir is automatically deleted when the installer exits
  30. InitPluginsDir
  31. File /oname=$PLUGINSDIR\splash.bmp "splash.BMP"
  32. advsplash::show 1000 600 400 0x04025C $PLUGINSDIR\splash
  33. Pop $0
  34. Delete $PLUGINSDIR\splash.bmp
  35. FunctionEnd
  36. ;--------------------------------
  37. ;Pages
  38. !insertmacro MUI_PAGE_LICENSE "License.txt"
  39. !insertmacro MUI_PAGE_COMPONENTS
  40. !insertmacro MUI_PAGE_DIRECTORY
  41. !insertmacro MUI_PAGE_INSTFILES
  42. !insertmacro MUI_UNPAGE_CONFIRM
  43. !insertmacro MUI_UNPAGE_INSTFILES
  44. ;--------------------------------
  45. ;Languages
  46. !insertmacro MUI_LANGUAGE "English"
  47. ;--------------------------------
  48. ; The stuff to install
  49. Section "Maki Compiler" SecCompiler
  50. DetailPrint "Installing Maki Compiler..."
  51. SetOutPath "$INSTDIR\"
  52. File "..\..\Wasabi\mc.exe"
  53. File "..\..\Wasabi\nscrt.dll"
  54. SectionEnd
  55. Section "Maki Standard Libraries" SecLibs
  56. DetailPrint "Installing Maki Standard Libraries..."
  57. SetOutPath "$INSTDIR\lib"
  58. File /x "private.mi" "..\..\Wasabi\lib\*.m*"
  59. SectionEnd
  60. Section "Maki Community Scripts" SecLibsCom
  61. DetailPrint "Installing Maki Community Scripts..."
  62. SetOutPath "$INSTDIR\lib\com"
  63. File /x "private.mi" "..\..\Wasabi\lib\com\*.m*"
  64. SectionEnd
  65. Section "Winamp Bento Source" SecSkinBento
  66. DetailPrint "Installing Winamp Bento Source Code..."
  67. SetOutPath "$INSTDIR\Skins\Big Bento"
  68. File /r /x "about.m" /x "nibbles.m" "..\skins\Big Bento\*.m"
  69. SetOutPath "$INSTDIR\Skins\Bento"
  70. File /r "..\skins\Bento\*.m"
  71. SectionEnd
  72. Section "Winamp Modern Source" SecSkinModern
  73. DetailPrint "Installing Winamp Modern Source Code..."
  74. SetOutPath "$INSTDIR\Skins\Winamp Modern"
  75. File /r "..\skins\Winamp Modern\*.m"
  76. SectionEnd
  77. # Where is the source code for ConsoleFile.w5s? This old version does not work with 5.9 :-(
  78. /* Section "Wasabi Debugger" SecDebugger
  79. DetailPrint "Installing Wasabi Debugger..."
  80. SetOutPath "$INSTDIR\system"
  81. File "ConsoleFile.w5s"
  82. SectionEnd */
  83. Section "Edit Plus Syntax Libs" SecEditplus
  84. DetailPrint "Installing Edit Plus Syntax..."
  85. SetOutPath "$INSTDIR"
  86. File "Maki.*"
  87. SectionEnd
  88. Section ""
  89. SetOutPath "$INSTDIR"
  90. File "wasdp_readme.txt"
  91. ;Create uninstaller
  92. WriteUninstaller "$INSTDIR\Uninstall_WaSDP.exe"
  93. ExecShell "open" "$INSTDIR\wasdp_readme.txt"
  94. SectionEnd
  95. ;--------------------------------
  96. ;Descriptions
  97. ;Language strings
  98. ;Assign language strings to sections
  99. !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  100. !insertmacro MUI_DESCRIPTION_TEXT ${SecCompiler} "This tool (mc.exe) is needed to compile *.m files to *.maki files."
  101. !insertmacro MUI_DESCRIPTION_TEXT ${SecLibs} "Standard Maki Libraries."
  102. !insertmacro MUI_DESCRIPTION_TEXT ${SecLibsCom} "Some maki scripts done by the Winamp community."
  103. !insertmacro MUI_DESCRIPTION_TEXT ${SecSkinModern} "Install Winamp Modern Skin Maki source code."
  104. !insertmacro MUI_DESCRIPTION_TEXT ${SecSkinBento} "Install Winamp Bento Maki source code."
  105. ;!insertmacro MUI_DESCRIPTION_TEXT ${SecDebugger} "Wasabi Debugger will print debug strings to c:\wasabi.log"
  106. !insertmacro MUI_DESCRIPTION_TEXT ${SecEditplus} "This will install Edit Plus Syntax Libs. For more info see readme.txt"
  107. !insertmacro MUI_FUNCTION_DESCRIPTION_END
  108. ;--------------------------------
  109. ;Uninstaller Section
  110. Section "Uninstall"
  111. Delete "$INSTDIR\mc.exe"
  112. Delete "$INSTDIR\Maki.*"
  113. Delete "$INSTDIR\wasdp_readme.txt"
  114. Delete "$INSTDIR\system\ConsoleFile.w5s"
  115. Delete "$INSTDIR\Skins\Winamp Modern\scripts\*.m"
  116. Delete "$INSTDIR\Skins\Big Bento\scripts\*.m"
  117. Delete "$INSTDIR\Skins\Bento\scripts\*.m"
  118. Delete "$INSTDIR\Skins\Big Bento\about\*.m"
  119. RMDir /r "$INSTDIR\lib"
  120. RMDir /r "$INSTDIR\Skins\Bento\scripts\mcvcore"
  121. RMDir /r "$INSTDIR\Skins\Big Bento\scripts\mcvcore"
  122. RMDir /r "$INSTDIR\Skins\Big Bento\scripts\lib"
  123. RMDir /r "$INSTDIR\Skins\Big Bento\scripts\suicore"
  124. RMDir /r "$INSTDIR\Skins\Big Bento\scripts\attribs"
  125. Delete "$INSTDIR\Uninstall_WaSDP.exe"
  126. SectionEnd