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?