There are a few different ways to skin this problem… An initial search will point you in the direction of using WMI Win32_Product class. Avoid this at all costs for reasons mentioned here.
Use this approach instead:
gci "HKLM:\software\Wow6432Node\Microsoft\windows\CurrentVersion\Uninstall" | %{ gp $_.PSPath } | where {$_.DisplayName -match "{Application Name}"}
Enjoy!
Advertisement
