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