Getting a program's GUID.

Technical Q&A involving operating systems, networking, software, and hardware issues.

Moderator: jasonb

Post Reply
User avatar
jasonb
Site Administrator
Posts: 105
Joined: Tue Apr 22, 2003 1:54 pm
Location: Toronto, Canada
Contact:

Getting a program's GUID.

Post 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
Post Reply