* properly support 'cuninst filebot'

This commit is contained in:
Reinhard Pointner 2013-12-26 07:36:48 +00:00
parent 9c41231af1
commit ec73e35dc1
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name = 'FileBot'"
echo $app
if ($app -eq $null) {
echo 'FileBot is not installed.'
} else {
$app.Uninstall()
echo 'FileBot has been uninstalled.'
}