Sign in to follow this  
Followers 0
flip209

Reg Help

2 posts in this topic

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0