Page 1 of 1

Getting a program's GUID.

Posted: Fri May 13, 2011 10:26 am
by jasonb
I've been unable to find any simple utility that will display all installed programs on a computer along with their GUIDs. I've come across a lot of references to APIs, etc., but it seems that, for some reason, nobody's compiled a simple .exe that will do this, and present a visually pleasing list.

I'm not going to code anything myself, but I did come across a simple batch file that will, although not "nicely", display a list of installed applications and their GUIDs:

Code: Select all

@echo off
for /f "tokens=7 delims=\" %%a in ('reg query hklm\software\microsoft\windows\currentversion\uninstall ^| FIND "{"') do for /f "tokens=2,*" %%c in ('reg query hklm\software\microsoft\windows\currentversion\uninstall\%%a ^|  find /i "DisplayName"') do echo %%d,%%a