I became curious and made the Win32_AddRemovePrograms class http://poshcode.org/2470 ... that works, but to be honest, you do not need this to check a specific product, you can just find this product identifier in the registry.
test-path "hklm:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{DCDEC776-BADD-48B9-8F9A-DFF513C3D7FA}"
Where {DCDEC776-BADD-48B9-8F9A-DFF513C3D7FA} is the product identifier for Asp.net MVC 3. You can double-check to make sure by checking the display name for it:
(Get-ItemProperty "hklm:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{DCDEC776-BADD-48B9-8F9A-DFF513C3D7FA}" DisplayName).DisplayName -eq "Microsoft ASP.NET MVC 3"
Jaykul
source share