Jump to content
Sign in to follow this  
bordomavi

Reg delete if reg empty

Recommended Posts

bordomavi

RegDelete("HKEY_CURRENT_USER\Software\App99")

if app99 is empty delete it or if not don't delete. how can i build it ?

Share this post


Link to post
Share on other sites
JLogan3o13

Do you know a value that would exist within the App99 key? If so, you could do something like this:

$val = RegRead("HKCU\Software\App99", "TestValue")
    If @error Then
        MsgBox(0, "", "Key not found")
    Else
        MsgBox(0, "", "Value of TestValue is: " & $val)
    EndIf

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
bordomavi

 

Do you know a value that would exist within the App99 key? If so, you could do something like this:

$val = RegRead("HKCU\Software\App99", "TestValue")
    If @error Then
        MsgBox(0, "", "Key not found")
    Else
        MsgBox(0, "", "Value of TestValue is: " & $val)
    EndIf

working. ty very much

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  

×