Jump to content

Reg Help


flip209
 Share

Recommended Posts

Does any one a better way to read all keys in a hive that the key = displayname

I Have :

CODE

while 1

$var = RegEnumKey("\\" & $comname & "\"&"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", $s)

$var1 = RegRead("\\" & $comname & "\"&"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"& $var, "DisplayName")

if @error = 0 then

GUICtrlCreatelistViewItem(" |" & $var1,$tree)

ElseIf @error <> 0 Then

$var1 = RegRead("\\" & $comname & "\"&"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"& $var, "QuietDisplayName")

ElseIf @error = 0 then

GUICtrlCreatelistViewItem(" |" & $var1,$tree)

Elseif @error <> 0 Then

ExitLoop

EndIf

$s += 1

WEnd

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...