feat: Erlang R16B01

This commit is contained in:
Iristyle
2013-07-02 10:50:03 -04:00
parent baaac7cda6
commit 79c1d2ba10
4 changed files with 77 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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
}