Sign in to follow this  
Followers 0
FeReNGi

RegDelete doesn't work with subkeys

4 posts in this topic

#1 ·  Posted (edited)

When i try to use RegDelete it reports error 0

$UnInstallKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
$SearchStr = "ClientAccessExpress"
RegDelete($UnInstallKey, $SearchStr)
    
or

RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", "ClientAccessExpress")

Both don't work with subkeys on it always error 0

When i use kixtart as a script language then it works fine -> http://www.scriptlogic.com/Kixtart/htmlhel...ons/deltree.htm

Edited by FeReNGi

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

When i try to use RegDelete it reports error 0

Your call to RegDelete() is simply wrong!

RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ClientAccessExpress")

will work.

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

I was using the syntax RegDelete ( "keyname" [, "valuename"] )

Your options works fine THNX !

Share this post


Link to post
Share on other sites

I was using the syntax RegDelete ( "keyname" [, "valuename"] )

Your options works fine THNX !

you tried to delete a VALUE not a KEY.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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