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\SOFTW
ARE\Micros
oft\Window
s\CurrentV
ersion\Uni
nstall\”
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\SOFTWA
RE\Microso
ft\Windows
\CurrentVe
rsion\Unin
stall\KB93
1906]
"DisplayName"="Security Update for CAPICOM (KB931906)"
"DisplayVersion"="2.1.0.2"
[HKEY_LOCAL_MACHINE\SOFTWA
RE\Microso
ft\Windows
\CurrentVe
rsion\Unin
stall\{3C4
DF0FD-95CF
-4F7B-A816
-97CEF6169
48F}]
"UninstallString"="\"C:\\P
rogram Files\\InstallShield Installation Information\\{3C4DF0FD-95C
F-4F7B-A81
6-97CEF616
948F}\\set
up.exe\""
"LogFile"="C:\\Program Files\\InstallShield Installation Information\\{3C4DF0FD-95C
F-4F7B-A81
6-97CEF616
948F}\\set
up.ilg"
"InstallLocation"="C:\\hp\
\"
"ProductGuid"="{3C4DF0FD-9
5CF-4F7B-A
816-97CEF6
16948F}"
"InstallSource"="C:\\HP Mgmt\\sysmgmt\\Setup.exe"
"DisplayName"="HP System Management Homepage"
"Publisher"="Hewlett-Packa
rd Company"
"URLInfoAbout"="
http://www.hp.com"
"RegCompany"="Invenergy LLC"
"DisplayIcon"="C:\\hp\\hps
mh\\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:00000
002
"MinorVersion"=dword:00000
001
"LogMode"=dword:00000001
Sample output (sample.xls)
Software Version
Security Update for CAPICOM 2.1.0.2
HP System Management Homepage 2.1.14
Our community of experts have been thoroughly vetted for their expertise and industry experience.