Question : script to parse ms registry dump

Consider a file containing a full registry dump of the software hive as an example the entry for a software package called NetWaiting is in the code listing.

It's a given that each registry record begins with [HKEY_LOCAL_MACHINE and ends with a single blank line.

I'm looking for a Linux script that will output all the registry entries and their respective DisplayName and DisplayVersion if they exist which is not always the case  like so...

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3F92ABBB-6BBF-11D5-B229-002078017FBF}]
NetWaiting 2.5.15

Thanks for helping.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3F92ABBB-6BBF-11D5-B229-002078017FBF}]
"DisplayIcon"=hex(2):43,3a,5c,50,72,6f,67,72,61,6d,20,46,69,6c,65,73,5c,4e,65,\
  74,57,61,69,74,69,6e,67,5c,4d,4f,48,2e,65,78,65,00
"Publisher"="BVRP Software, Inc"
"DisplayVersion"="2.5.15"
"VersionMajor"=dword:00000002
"VersionMinor"=dword:00000005
"InstallLocation"="C:\\Program Files\\NetWaiting"
"Language"=dword:00000009
"UninstallString"="RunDll32 C:\\PROGRA~1\\COMMON~1\\INSTAL~1\\engine\\6\\INTEL3~1\\Ctor.dll,LaunchSetup \"C:\\Program Files\\InstallShield Installation Information\\{3F92ABBB-6BBF-11D5-B229-002078017FBF}\\setup.exe\" -l0x9 ControlPanelAnyText"
"DisplayName"="NetWaiting"
"LogFile"="C:\\Program Files\\InstallShield Installation Information\\{3F92ABBB-6BBF-11D5-B229-002078017FBF}\\setup.ilg"

Answer : script to parse ms registry dump

This is due to the recordset
Set rs = Server.CreateObject("ADODB.Recordset")
objrs.CursorType = 2 ' Use 2 instead of adCmdTable
objrs.LockType = 3 ' Use 3 instead of adLockOptimistic
rs.Open strSQL, consqldb

and consqldb should be valid connection string
Or use the following
rs.Open strSQL, consqldb,2,3
Random Solutions  
 
programming4us programming4us