chocolatey/packages/cantata/tools/chocolateyuninstall.ps1

13 lines
447 B
PowerShell
Executable File

# Cantata uninstaller
# chocolatey auto uninstaller does not uninstall...
$packageName = 'cantata'
$silentArgs = '/S'
if (Test-Path "$env:ProgramFiles\Cantata\uninstall.exe") {
& "$env:ProgramFiles\Cantata\uninstall.exe" $silentArgs
} elseif (Test-Path "${env:ProgramFiles(x86)}\Cantata\uninstall.exe") {
& "${env:ProgramFiles(x86)}\Cantata\uninstall.exe" $silentArgs
} else {
Write-Host 'Cantata is already uninstalled.'
}