1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
filebot/installer/chocolatey/tools/chocolateyUninstall.ps1
2018-06-22 22:24:06 +07:00

9 lines
241 B
PowerShell

$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.'
}