From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/installer/winamp/sections/extra.nsh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Src/installer/winamp/sections/extra.nsh (limited to 'Src/installer/winamp/sections/extra.nsh') diff --git a/Src/installer/winamp/sections/extra.nsh b/Src/installer/winamp/sections/extra.nsh new file mode 100644 index 00000000..4884ed8d --- /dev/null +++ b/Src/installer/winamp/sections/extra.nsh @@ -0,0 +1,27 @@ +Section -HiddenExtra + Call WMF_NeedDownload + Pop $0 + ${If} $0 == "0" #nobody needs downlod - skip section + goto download_end + ${EndIf} + + DetailPrint $(IDS_RUN_CHECK_IFCONNECTED) + Call ConnectInternet + Pop $0 + ${If} $0 == "online" + DetailPrint $(IDS_RUN_CHECK_IFINETAVAILABLE) + Call IsInternetAvailable + Pop $0 + ${EndIf} + + ${If} $0 != "online" + DetailPrint $(IDS_RUN_NOINET) + goto download_end + ${EndIf} + + Call WMF_Download + +download_end: + Call WMF_Install + +SectionEnd \ No newline at end of file -- cgit