blob: 7d4d30982a6dd0cc710c13a104ac0d6e2c68fffa (
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
|
!ifdef std | full
SectionGroup $(IDS_GRP_WALIB) IDX_GRP_WALIB ; Winamp Library
${WinampSection} "mediaLibrary" $(secML) IDX_SEC_ML ; >>> [Media Library]
${SECTIONIN_STD}
SectionGetFlags ${IDX_GRP_WALIB} $1
IntOp $1 $1 & 0x0041
StrCmp $1 "0" done
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\gen_ml.dll
done:
SetOutPath $INSTDIR\Shared
File ${FILES_PATH}\Shared\nxlite.dll
${WinampSectionEnd} ; <<< [Media Library]
!include ".\sections\grp_walib_core.nsh"
${WinampSection} "mediaLibraryTranscode" $(sec_ML_TRANSCODE) IDX_SEC_ML_TRANSCODE ; >>> [Trancsoding Tool]
${SECTIONIN_STD}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_transcode.dll
${If} ${FileExists} "$SETTINGSDIR\Plugins\ml_transcode.ini"
Rename "$SETTINGSDIR\Plugins\ml_transcode.ini" "$SETTINGSDIR\Plugins\ml\ml_transcode.ini"
${EndIf}
${WinampSectionEnd} ; <<< [Trancsoding Tool]
${WinampSection} "mediaLibraryReplayGain" $(sec_ML_RG) IDX_SEC_ML_RG ; >>> [Replay Gain Analysis Tool]
${SECTIONIN_STD}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_rg.dll
SetOutPath $INSTDIR\Shared
File ${FILES_PATH}\Shared\ReplayGainAnalysis.dll
${WinampSectionEnd} ; <<< [Replay Gain Analysis Tool]
!ifndef WINAMP64
!ifdef full
${WinampSection} "mediaLibraryiTunesImp" $(sec_ML_IMPEX) IDX_SEC_ML_IMPEX ; >>> [iTunes Importer]
${SECTIONIN_FULL}
SetOutPath $INSTDIR\System
File ${FILES_PATH}\System\xml.w5s
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_impex.dll
${WinampSectionEnd} ; <<< [iTunes Importer]
!endif
!endif ; WINAMP64
!if 0
${WinampSection} "mediaLibraryAutoTag" $(IDS_SEC_ML_AUTOTAG) IDX_SEC_ML_AUTOTAG ; >>> [Auto Tag]
${SECTIONIN_STD}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_autotag.dll
${WinampSectionEnd} ; <<< [Auto Tag]
!endif
!ifdef full
${WinampSection} "mediaLibraryPodcast" $(secWire) IDX_SEC_ML_WIRE ; >>> [SHOUTCast Wire]
${SECTIONIN_FULL}
SetOutPath $INSTDIR\Shared
File ${FILES_PATH}\Shared\nde.dll
File ${FILES_PATH}\Shared\nxlite.dll
File ${FILES_PATH}\Shared\jnetlib.dll
SetOutPath $INSTDIR\System
; File ${FILES_PATH}\System\jnetlib.w5s
; File /nonfatal "${FILES_PATH}\System\jnetlib.wbm"
File ${FILES_PATH}\System\wac_network.w5s
File ${FILES_PATH}\System\xml.w5s
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_wire.dll
;!warning "ml_downloads disabled to make 5.5.2 (1 of 2)"
File ${FILES_PATH}\Plugins\ml_downloads.dll
WriteRegStr HKEY_CLASSES_ROOT "pcast" "" "URL: Podcast Protocol"
WriteRegStr HKEY_CLASSES_ROOT "pcast" "URL Protocol" ""
WriteRegStr HKEY_CLASSES_ROOT "pcast\shell\open\command" "" "$INSTDIR\${WINAMPEXE} /HANDLE %1"
WriteRegStr HKEY_CLASSES_ROOT "feed" "" "URL: RSS Protocol"
WriteRegStr HKEY_CLASSES_ROOT "feed" "URL Protocol" ""
WriteRegStr HKEY_CLASSES_ROOT "feed\shell\open\command" "" "$INSTDIR\${WINAMPEXE} /HANDLE %1"
SetOutPath $INSTDIR\System
File ${FILES_PATH}\System\omBrowser.w5s
; File /nonfatal ${FILES_PATH}\System\omBrowser.wbm
; Qt Components
SetOutPath $INSTDIR
File ${FILES_PATH}\Qt5Core.dll
File ${FILES_PATH}\Qt5Network.dll
/*
; Placeholder - code is currently not working
; We need a method to rename the <winamp:preferences xmlns:winamp="http://www.winamp.com" version="2"> node to just <winamp>,
; then make the "service url=" change, then rename the node back to the original...
; Force using default dir for 5.9 by removing any alternate podcast dir user setting
; make a backup first
${If} ${FileExists} "$SETTINGSDIR\Plugins\ml\feeds\rss.xml"
CreateDirectory "$SETTINGSDIR\Plugins\ml\feeds\backup"
CopyFiles /SILENT "$SETTINGSDIR\Plugins\ml\feeds\rss.xml" "$SETTINGSDIR\Plugins\ml\feeds\backup\rss.xml"
; backup made, now edit the service url
nsisXML::create
nsisXML::load "$SETTINGSDIR\Plugins\ml\feeds\rss.xml"
${If} $0 P<> 0
nsisXML::select '/winamp/service'
;Diagnostics
;MessageBox mb_ok "$1 should not be 0 here"
${If} $1 P<> 0
nsisXML::setAttribute "url" ""
nsisXML::save "$SETTINGSDIR\Plugins\ml\feeds\rss.xml"
${EndIf}
nsisXML::release $0
${Else}
;Diagnostics
;MessageBox mb_ok "load failed"
nsisXML::release $1
${EndIf}
${EndIf}
*/
${WinampSectionEnd} ; <<< [SHOUTCast Wire]
!endif
!ifndef WINAMP64
!ifdef full
${WinampSection} "mediaLibraryOnlineServices" $(secOM) IDX_SEC_ML_ONLINE ; >>> [Online Media]
${SECTIONIN_FULL}
StrCpy $0 "$SETTINGSDIR\Plugins\ml"
CreateDirectory "$0"
Delete "$0\radio.*"
Delete "$0\tv.*"
Delete "$0\waaudio.*"
Delete "$0\wamedia.*"
Delete "$0\watv.*"
Delete "$0\xmmedia.*"
Delete "$0\ml_win_media.ini"
SetOutPath "$INSTDIR\Plugins"
File "${FILES_PATH}\Plugins\ml_online.dll"
;!warning "ml_downloads disabled to make 5.5.2 (2 of 2)"
File "${FILES_PATH}\Plugins\ml_downloads.dll"
StrCpy $0 "$SETTINGSDIR\Plugins\ml\ml_online.ini"
DeleteINIStr "$0" "Setup" "featuredExtra"
DeleteINIStr "$0" "Navigation" "openOnce"
DeleteINIStr "$0" "Navigation" "openOnceMode"
SetOutPath "$INSTDIR\System"
File /nonfatal "${FILES_PATH}\System\omBrowser.w5s"
; File /nonfatal "${FILES_PATH}\System\omBrowser.wbm"
File ${FILES_PATH}\System\wac_network.w5s
; File ${FILES_PATH}\System\jnetlib.w5s
; File /nonfatal "${FILES_PATH}\System\jnetlib.wbm"
${WinampSectionEnd} ; <<< [Online Media]
!endif
!endif
!ifndef WINAMP64
!ifdef full
${WinampSection} "mediaLibraryNFT" $(sec_ML_NFT) IDX_SEC_ML_NFT ; >>> [NFT Library]
${SECTIONIN_FULL}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_nft.dll
${WinampSectionEnd} ; <<< [NFT Library]
!endif
!endif ; WINAMP64
!ifndef WINAMP64
!ifdef full
${WinampSection} "mediaLibraryFanzone" $(sec_ML_FANZONE) IDX_SEC_ML_FANZONE ; >>> [Fanzone]
${SECTIONIN_FULL}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_fanzone.dll
${WinampSectionEnd} ; <<< [Fanzone]
!endif
!endif ; WINAMP64
!ifndef WINAMP64
!ifdef full
${WinampSection} "mediaLibraryHotmix" $(sec_ML_HOTMIX) IDX_SEC_ML_HOTMIX ; >>> [HotmixRadio]
${SECTIONIN_FULL}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_hotmixradio.dll
${WinampSectionEnd} ; <<< [HotmixRadio]
!endif
!endif ; WINAMP64
!if 0
!ifdef full
${WinampSection} "mediaLibraryPlaylistGenerator" $(SEC_ML_PLG) IDX_SEC_ML_PLG ; >>> [Playlist Generator]
${SECTIONIN_FULL}
SetOutPath $INSTDIR\Plugins
File ${FILES_PATH}\Plugins\ml_plg.dll
${WinampSectionEnd} ; <<< [Playlist Generator]
!endif
!endif
!include ".\sections\grp_walib_pmp.nsh"
SectionGroupEnd
!endif ; FULL
|