A slightly better way to retrieve a list of installed programs through the command line, while maintaining a degree of simplicity, is to use the line below.
Code:
for /f "tokens=1,2,* delims= " %I in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s ^| find "DisplayName "') do @echo(%K
What this command line actually lists is a fact you can judge for yourself by observing the specified registry key name.
I haven't tested how accurate this command line is when compared to the GUI,
appwiz.cpl panel (Control Panel\All Control Panel Items\Programs and Features). Perhaps you guys can help verify this solution.