AHRIMANSEFID Posted November 12, 2009 Posted November 12, 2009 Hi All. No't Delete key reg Why? example : RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\", "{46FF608D-98A4-D566-772B-E7CDA74A0B9F}")
Zedna Posted November 12, 2009 Posted November 12, 2009 You probably don't have access rights for modifying registry. Try to log-on as Administrator and test if your script will work. Resources UDF ResourcesEx UDF AutoIt Forum Search
99ojo Posted November 12, 2009 Posted November 12, 2009 You probably don't have access rights for modifying registry.Try to log-on as Administrator and test if your script will work.Hi,on normal circumstances you have the right to write / delete keys in tree HKCU.The example isn't reproducable, because the key never wouldn't be written like this beneath ...Microsoft\Windows.1) Start regedit and create a key, eg. HKEY_CURRENT_USER\Software\MYTEST, REG_SZ Test with value Test2) Code: RegDelete("HKCU\Software\MYTEST", "Test")3) If you have 64 Bit OS you should use HKCU64AND THE MOST IMPORTANT (see helpfile):Deleting from the registry is potentially dangerous--please exercise caution;-))Stefan
AHRIMANSEFID Posted November 13, 2009 Author Posted November 13, 2009 (edited) Hi. No't User Me Admin. Win Vista Ul x86. No't Delete. RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved", "{46FF608D-98A4-D566-772B-E7CDA74A0B9F}") Edited November 13, 2009 by AHRIMANSEFID
99ojo Posted November 13, 2009 Posted November 13, 2009 Hi. No't User Me Admin. Win Vista Ul x86. No't Delete. RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved", "{46FF608D-98A4-D566-772B-E7CDA74A0B9F}") Hi, try #RequireAdmin at the beginning of your script. ;-)) Stefan
Zedna Posted November 13, 2009 Posted November 13, 2009 Can you delete this registry key by hand? Resources UDF ResourcesEx UDF AutoIt Forum Search
AHRIMANSEFID Posted November 13, 2009 Author Posted November 13, 2009 (edited) yes,can delete key. Add But no't Delete. #RequireAdmin RegDelete("HKCUSoftwareMicrosoftWindowsCurrentVersionShell ExtensionsApproved", "{46FF608D-98A4-D566-772B-E7CDA74A0B9F}") no't delete {46FF608D-98A4-D566-772B-E7CDA74A0B9F} Edited July 20, 2012 by Jon Removed suspected malware link.
Authenticity Posted November 13, 2009 Posted November 13, 2009 (edited) Try this, you're trying to delete sub key not a value: #RequireAdmin RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved\{46FF608D-98A4-D566-772B-E7CDA74A0B9F}") Backup first, just in case. Edited November 13, 2009 by Authenticity
AHRIMANSEFID Posted April 1, 2010 Author Posted April 1, 2010 Hi. I,m Back Sorry. Me need Code For Delete Address Plz Help Thanks. Win7 x86+64 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved
Zedna Posted April 2, 2010 Posted April 2, 2010 (edited) According to helpfile Function RegDeleteWhen running on 64-bit Windows if you want to delete a key or value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64. Try this: RegDelete("HKCU64\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved", "{46FF608D-98A4-D566-772B-E7CDA74A0B9F}") ;RegDelete("HKCU64\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved") MsgBox(0,'Error Code', @error) Edited April 2, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
AHRIMANSEFID Posted April 2, 2010 Author Posted April 2, 2010 Thanks Dear. But Me Need Delete Approved no {46FF608D-98A4-D566-772B-E7CDA74A0B9F}. Thanks.
sahsanu Posted April 4, 2010 Posted April 4, 2010 But Me Need Delete Approved no {46FF608D-98A4-D566-772B-E7CDA74A0B9F}. Caution, If you delete Approved you will delete ALL inside this "directory"... {46FF608D-98A4-D566-772B-E7CDA74A0B9F} included. RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved") Regards, sahsanu
AHRIMANSEFID Posted April 4, 2010 Author Posted April 4, 2010 (edited) Thanks But Not Delete.Send Error Me :HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved Edited April 4, 2010 by AHRIMANSEFID
GEOSoft Posted April 4, 2010 Posted April 4, 2010 I'm pretty sure that "Software\Microsoft\Windows\CurrentVersion\Shell Extensions\" is security protected an you will have to set permissions on that key. 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 4, 2010 Posted April 4, 2010 (edited) Let's see if you are admin, try this: #RequireAdmin If IsAdmin() Then RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved") Else MsgBox(16,"Error","You are not admin") EndIf Edit: If you run Windows 7 64 bits change HKCU by HKCU64 in above RegDelete function. Edited April 4, 2010 by sahsanu
sahsanu Posted April 4, 2010 Posted April 4, 2010 Not Delete Not Show Me Error Autoit. Did you try HKCU and HKCU64?. Sorry but I never played with Windows 7 and don't have any Windows 7 installed to test the examples. Test if you can read the registry key (if HKCU64 does not work try with HKCU): #RequireAdmin If IsAdmin() Then RegRead("HKCU64\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved","") MsgBox(0,"",@error & " & " & @extended) Else MsgBox(16,"Error","You are not admin") EndIf
AHRIMANSEFID Posted April 4, 2010 Author Posted April 4, 2010 (edited) Not delete.me test new win 7 x86.Autoit Send Code :-1 & 2 Edited April 4, 2010 by AHRIMANSEFID
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