aboutsummaryrefslogtreecommitdiff
path: root/Src/installer/winamp/sections/grp_uiext.nsh
blob: 90ec3c396776527df1fbdfa7625bcd412be464db (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
SectionGroup $(IDS_GRP_UIEXTENSION) IDX_GRP_UIEXTENSION ;  User Interface Extensions
	${WinampSection} "GlobalHotkeys" $(secHotKey) IDX_SEC_HOTKEY      ; >>> [Global Hotkey Support]
		${SECTIONIN_LITE}
		SetOutPath $INSTDIR\Plugins
		File ${FILES_PATH}\Plugins\gen_hotkeys.dll
	${WinampSectionEnd}                                               ; <<< [Global Hotkey Support]

	${WinampSection} "TrayControl" $(secTray) IDX_SEC_TRAYCTRL        ; >>> [Nullsoft Tray Control]
		${SECTIONIN_LITE}
		SetOutPath $INSTDIR\Plugins
		File ${FILES_PATH}\Plugins\gen_tray.dll
	${WinampSectionEnd}                                               ; <<< [Nullsoft Tray Control]

!ifndef WINAMP64
!ifdef full | std
	${WinampSection} "FreeformSkins" $(compModernSkin) IDX_SEC_FREEFORM      ; >>> [Modern Skin Support]
		${SECTIONIN_STD}
		SetOutPath $INSTDIR\System
		File "${FILES_PATH}\System\filereader.w5s"
		; File /nonfatal "${FILES_PATH}\System\filereader.wbm"
		; File "${FILES_PATH}\System\dlmgr.w5s"
		; File /nonfatal "${FILES_PATH}\System\dlmgr.wbm"
		File "${FILES_PATH}\System\wac_downloadManager.w5s"
		File "${FILES_PATH}\System\timer.w5s"

		SetOutPath $INSTDIR\Plugins
		File ${FILES_PATH}\Plugins\gen_ff.dll

		DetailPrint "$(IDS_RUN_EXTRACT) $(IDS_DEFAULT_SKIN)..."
		SetDetailsPrint none

		File /r /x CVS /x *.psd "..\..\resources\data\Freeform"
		Delete $INSTDIR\Plugins\Freeform\wacs\jpgload\jpgload.wac
		SetOutPath $INSTDIR\Plugins\Freeform\wacs\freetype
		File ${FILES_PATH}\Plugins\Freeform\wacs\freetype\freetype.wac

		SetOutPath $SETTINGSDIR
		File "..\..\resources\data\links.xml"

		Call GetSkinDir
		Pop $R0

		SetOutPath "$R0\${MODERNSKINNAME}"
		File /r /x CVS /x *.mi /x *.bat /x *.m "..\..\resources\skins\${MODERNSKINNAME}\*.*"

		SetOutPath "$R0\Bento"
		File /r /x CVS /x *.mi /x *.m /x *.psd "..\..\resources\skins\Bento\*.*"

		SetOutPath "$R0\Big Bento"
		File /r /x CVS /x *.mi /x *.bat /x *.m /x *.psd "..\..\resources\skins\Big Bento\*.*"

		SetDetailsPrint lastused
		SetOutPath "$INSTDIR\Plugins"

		ReadIniStr $0 "$WINAMPINI" "Winamp" "skin"
		${If} "$0" == "Winamp Bento"
			WriteIniStr "$WINAMPINI" "Winamp" "skin" "Bento"
		${EndIf}
	${WinampSectionEnd}                                            ; <<< [Modern Skin Support]
!endif ; full | std
!endif ; WINAMP64

	${FrenchRadio_InsertInstallSections}
SectionGroupEnd ;  User Interface Extensions