Sign in to follow this  
Followers 0
kodius

Search Reg for key

2 posts in this topic

This doesn't work but I was wondering without using another UDF I found that seemed like overkill, if there is a simple way to search either a Branch or the entire registry for a specific Key?

Func _Remove_Poorly_Written_Uninstaller ($y = "RegRead(Some_Buried_Key)")

RegRead("HKEY_LOCAL_MACHINE", $y)

MsgBox(0,"", $y, "Found!")

EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$regvalue = RegRead("HKLM\Software\WhateverKey", "WhateverValue")
If @error <> 0 Then
    MsgBox(0, "", "Not Found")
Else
    MsgBox(0, "", "Found")
EndIf

Edited by system24

[center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]

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