diff --git a/Erlang16/Erlang16.nuspec b/Erlang16/Erlang16.nuspec new file mode 100644 index 0000000..10b2f5c --- /dev/null +++ b/Erlang16/Erlang16.nuspec @@ -0,0 +1,28 @@ + + + + Erlang16 + Erlang OTP + 16.01 + Joe Armstrong, Ericsson, Erlang Contributors + Ethan J Brown + Erlang R16B01 is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. + What is Erlang? + +Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. + +Erlang quickstart + +What is OTP? + +OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems. It includes its own distributed database, applications to interface towards other languages, debugging and release handling tools. + http://www.erlang.org/download/otp_src_R16B01.readme + http://www.erlang.org/ + erlang concurrent programming language sdk otp + http://www.erlang.org/EPLICENSE + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/Erlang16/erlang-logo.png + + + + diff --git a/Erlang16/erlang-logo.png b/Erlang16/erlang-logo.png new file mode 100644 index 0000000..56291aa Binary files /dev/null and b/Erlang16/erlang-logo.png differ diff --git a/Erlang16/tools/chocolateyInstall.ps1 b/Erlang16/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..975434b --- /dev/null +++ b/Erlang16/tools/chocolateyInstall.ps1 @@ -0,0 +1,21 @@ +$package = 'Erlang' +$version = 'R16B01' + +try { + $params = @{ + PackageName = $package; + FileType = 'exe'; + #uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html + SilentArgs = '/S'; + Url = "http://www.erlang.org/download/otp_win32_$($version).exe"; + Url64Bit = "http://www.erlang.org/download/otp_win64_$($version).exe"; + } + + Install-ChocolateyPackage @params + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} + diff --git a/Erlang16/tools/chocolateyUninstall.ps1 b/Erlang16/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..5cf46db --- /dev/null +++ b/Erlang16/tools/chocolateyUninstall.ps1 @@ -0,0 +1,28 @@ +$package = 'Erlang' +$installFolder = 'erl5.10.2' + +try +{ + $installPath = (Join-Path "${Env:\ProgramFiles(x86)}" $installFolder), + (Join-Path $Env:ProgramFiles $installFolder) | + ? { Test-Path $_ } | + Select -First 1 + + $uninstall = Join-Path $installPath 'uninstall.exe' + + #uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html + $uninstallParams = @{ + PackageName = $package; + FileType = 'exe'; + SilentArgs = '/S'; + File = $uninstall; + } + + Uninstall-ChocolateyPackage @uninstallParams + Write-ChocolateySuccess $package +} +catch +{ + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}