Get-InstalledApplication help

Topics: Archive - General
Dec 4, 2013 at 8:11 PM

I'm attempting to detect when an application is installed and if so run and uninstall routine for it.

I know that Remove-MSIApplications will do this, but I would like it slightly user interactive.

Example from my limited experience
If(Get-InstalledApplication -Name "Adobe Flash" -eq True) 
Write-Log "Detected previous version. Beginning uninstall process"
Show-BalloonTip -BalloonTipText "Uninstalling Previous Version"
Remove-MSIApplications "Adobe Flash"
Write-Log "Uninstall Complete"

My brain mushed, I cant seem to figure out the output of Get-InstalledApplication and how to test out of it.

Anyone have any ideas?


Dec 4, 2013 at 8:25 PM
Oh you were so close! -eq $true ;) Regards, Dan
Dec 4, 2013 at 8:29 PM
Oh son of a biscuit.

Thanks for the help Dan.
Dec 12, 2014 at 2:59 AM
But that function is not returning a boolean value. Just an array. So you will have to return the result in a variable and test for $null.