feat: Sublime Text 3 build 3047
- Supports install and uninstall
This commit is contained in:
26
SublimeText3/tools/chocolateyUninstall.ps1
Normal file
26
SublimeText3/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,26 @@
|
||||
$package = 'SublimeText3'
|
||||
$installFolder = 'Sublime Text 3'
|
||||
|
||||
try {
|
||||
|
||||
$path = ${Env:ProgramFiles(x86)}, $Env:ProgramFiles |
|
||||
% { Join-Path $_ $installFolder } |
|
||||
? { Test-Path $_ } |
|
||||
Select -First 1
|
||||
|
||||
if ($path)
|
||||
{
|
||||
Push-Location $path
|
||||
$uninstaller = '.\unins000.exe'
|
||||
if (Test-Path $uninstaller)
|
||||
{
|
||||
$unargs = '/silent', '/verysilent', '/suppressmsgboxes', '/norestart'
|
||||
&$uninstaller $unargs
|
||||
}
|
||||
}
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user