Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

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

Avatar of NanohurtzChrome
NanohurtzChrome asked on
Visual Basic ClassicMicrosoft ExcelVB Script
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
Avatar of merowinger
merowingerFlag of Germany image

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

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers