troubleshooting Question

Extracting Software Display Name and Display Version from a .reg file

Avatar of NanohurtzChrome
NanohurtzChrome asked on
Visual Basic ClassicVB ScriptMicrosoft Excel
2 Comments1 Solution592 ViewsLast Modified:
Hey guys,

I need a tiny tool to help parse 2 strings from a .reg file  – should be fairly easy J

USE CASE

The script will open the .reg file  and for every Instance of:

“[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\”

Extract data from the following headers:

·      Display Name
·      Display Version

Present the output it in a comma deliminated or .xls output.

EXAMPLE

Sample input (sample.reg)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KB931906]
"DisplayName"="Security Update for CAPICOM (KB931906)"
"DisplayVersion"="2.1.0.2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3C4DF0FD-95CF-4F7B-A816-97CEF616948F}]
"UninstallString"="\"C:\\Program Files\\InstallShield Installation Information\\{3C4DF0FD-95CF-4F7B-A816-97CEF616948F}\\setup.exe\""
"LogFile"="C:\\Program Files\\InstallShield Installation Information\\{3C4DF0FD-95CF-4F7B-A816-97CEF616948F}\\setup.ilg"
"InstallLocation"="C:\\hp\\"
"ProductGuid"="{3C4DF0FD-95CF-4F7B-A816-97CEF616948F}"
"InstallSource"="C:\\HP Mgmt\\sysmgmt\\Setup.exe"
"DisplayName"="HP System Management Homepage"
"Publisher"="Hewlett-Packard Company"
"URLInfoAbout"="http://www.hp.com"
"RegCompany"="Invenergy LLC"
"DisplayIcon"="C:\\hp\\hpsmh\\csIcon.ico"
"NoModify"=dword:00000001
"NoRemove"=dword:00000000
"NoRepair"=dword:00000001
"InstallDate"="20090514"
"Language"=dword:00000009
"DisplayVersion"="2.1.14"
"Version"=dword:0201000e
"MajorVersion"=dword:00000002
"MinorVersion"=dword:00000001
"LogMode"=dword:00000001

Sample output (sample.xls)

Software                                                Version
Security Update for CAPICOM                2.1.0.2
HP System Management Homepage      2.1.14



ASKER CERTIFIED SOLUTION
merowinger

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros