Jump to content
Sign in to follow this  
kodius

Search Reg for key

Recommended Posts

kodius

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
system24

$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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.