Ying Li has a cool PowerShell Script to list installed Software on a local computer HERE

When I looked at it and thought to myself, I can do that with 1 line (if I cheat a little).  Here it is:

PS> gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString |ogv


HI Jeffrey. That's nice but you forgot there's atleast 2 other registry keys you need to list! How do you do that with one line so all the results are sortable in Out-GridView. I'd be very excited to learn this.

HKCU SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKLM SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

(on one line without making a script file).

My C# version.