1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-12 04:15:00 -05:00
filebot/installer/choco/tools/chocolateyUninstall.ps1

9 lines
241 B
PowerShell
Raw Normal View History

2018-06-22 11:24:06 -04:00
$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name = '@{application.name}'"
if ($app -eq $null) {
echo '@{application.name} is not installed.'
} else {
$app.Uninstall()
echo '@{application.name} has been uninstalled.'
}