Jump to content

Search Reg for key


Recommended Posts

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

Link to comment
Share on other sites

$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]
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...