feat: Erlang R16B01
This commit is contained in:
28
Erlang16/tools/chocolateyUninstall.ps1
Normal file
28
Erlang16/tools/chocolateyUninstall.ps1
Normal 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
|
||||
}
|
Reference in New Issue
Block a user