trancexx Posted April 6, 2010 Posted April 6, 2010 Normally you should be able to delete that key with no problems even without administrator privileges, but you have to face a fact that some application is keeping it protected for its own reasons.Just post the code of what you have tried and add proper error checking. Post the results (return value, @error and @extended).Neither of suggested scripts have all that. Your turn. ♡♡♡ . eMyvnE
trancexx Posted April 6, 2010 Posted April 6, 2010 You do understand that you are showing results of RegRead()?RegDelete() is wanted. ♡♡♡ . eMyvnE
kaotkbliss Posted April 6, 2010 Posted April 6, 2010 Hmm, I couldn't think of any reason to use regread instead of regdelete... 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
wraithdu Posted April 7, 2010 Posted April 7, 2010 The OP must also realize those are completely expected results for trying to read the Default value when one does not exist...
trancexx Posted April 7, 2010 Posted April 7, 2010 Language barrier is one thing, being (acting as) an idiot is another. It would be really interesting to see who will be the person to "Add Example". ...I'll be watching. ♡♡♡ . eMyvnE
kaotkbliss Posted April 8, 2010 Posted April 8, 2010 RegRead()RegDelete()Look them up in the help file and see which one you want to use to Delete a reg key. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
AHRIMANSEFID Posted April 9, 2010 Author Posted April 9, 2010 Me Need Delete reg Address But Not Delete Autoit & right clcik sclect delete send error. RegDelete()
kaotkbliss Posted April 9, 2010 Posted April 9, 2010 (edited) Me like cookies. Seriously though, what are you trying to say? Me Need Delete reg Address But Not Delete Autoit & right clcik sclect delete send error. *edit* and because this is going nowhere #RequireAdmin RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved") Sleep(100) MsgBox(0,"errors","error= "&@error&@CRLF&"extended= "&@extended) Edited April 9, 2010 by kaotkbliss 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
trancexx Posted April 9, 2010 Posted April 9, 2010 Don't do that kaotkbliss. Besides, your code is wrong. Again there will be no valid report. ♡♡♡ . eMyvnE
kaotkbliss Posted April 9, 2010 Posted April 9, 2010 Oh, yeah... that's way wrong. Too early in the AM and need more coffee. I must have been sleep typing again. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
AHRIMANSEFID Posted April 9, 2010 Author Posted April 9, 2010 Me Test Not Work.#RequireAdmin RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved") Sleep(100) MsgBox(0,"errors","error= "&@error&@CRLF&"extended= "&@extended)
GEOSoft Posted April 10, 2010 Posted April 10, 2010 Take out the Sleep() and see what you get or use this to test #RequireAdmin RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved") $Err = @Error $Ext = @Extended Sleep(100) MsgBox(0,"errors","error= "&$Err&@CRLF&"Extended= "&$Ext) George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
GEOSoft Posted April 10, 2010 Posted April 10, 2010 Didn't think it would but it did get us the proper error.2 - if unable to open requested main keyAnd I still say it's a permissions issue you are having. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
sahsanu Posted April 11, 2010 Posted April 11, 2010 Actually, error code is "-2" -> if unable to delete requested key/value Maybe you have some anti-spyware, antivirus, etc. on that PC and this software is blocking your RegDelete. Please, check it.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now