AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Corrupt Registry Keys

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
OldTroll



Joined: 18 Aug 2006
Posts: 5
Location: Oakland, CA

PostPosted: Mon Oct 09, 2006 3:16 pm    Post subject: Corrupt Registry Keys Reply with quote

Just recently (1 or 2 versions ago) I could not get .ahk to be recognized as AutoHotKey's associated file.
Two entries in HKEY_CLASSES_ROOT, AutoHotKeyScript and .ahk are keys with no permissions, and they cannot be deleted by Administrator in Safe Mode. No problem w/ making changes to other keys. I have always installed new versions with a user name that has admin privs. Just for grins, use regedt32.exe and look at these keys on your system - are they blank, no permissions?
Thanks,
Don J
_________________
I don't miss the good ole days of CPM and 300 BAUD modems.
Back to top
View user's profile Send private message
JSLover



Joined: 20 Dec 2004
Posts: 542
Location: LooseChange911.com... the WTC attacks were done by the US Gov't... the official story is a lie...

PostPosted: Mon Oct 09, 2006 3:19 pm    Post subject: Re: Corrupt Registry Keys Reply with quote

Even admin can be denied access to delete keys, but you should be able to Take Owner (if you aren't) then Add admin permissions to delete it...(I'm not sure why this would develop on its own tho)...
_________________

Home • Click image! • Blog
Back to top
View user's profile Send private message Visit poster's website
OldTroll



Joined: 18 Aug 2006
Posts: 5
Location: Oakland, CA

PostPosted: Mon Oct 09, 2006 5:45 pm    Post subject: Even Taking Ownership Fails Reply with quote

That was a good suggestion. I failed to mention that I had also gone into extended properties and taken ownership. Even with that, can't delete the key. Out of curiosity, I attempted to re-install AutoHotKey (latest version) and the install was unable to update the keys that are corrupt. Beginning to suspect I may have to use the system recovery CD to go into DOS mode, make a copy of the hives, change or delete the keys by brute force, then replace registry with a modified copy.
_________________
I don't miss the good ole days of CPM and 300 BAUD modems.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Mon Oct 09, 2006 6:43 pm    Post subject: Reply with quote

The AutoHotkey installer uses the standard registry routines provided by the NSIS installer. It's hard to imagine there's any bug in them since they almost certainly use the standard WinAPI registry functions.

If anyone has else observed this to happen, or can reproduce it, please let me know.

Thanks.
Back to top
View user's profile Send private message Send e-mail
numEric



Joined: 27 Aug 2004
Posts: 33
Location: France

PostPosted: Mon Oct 09, 2006 10:11 pm    Post subject: Re: Even Taking Ownership Fails Reply with quote

OldTroll wrote:
I failed to mention that I had also gone into extended properties and taken ownership. Even with that, can't delete the key.
Have you tried the same under HKLM\SOFTWARE\Classes?
Might be worth trying as, as you may already know, HKCR is just an alias to a mix of HKLM\SOFTWARE\Classes and HKCU\SOFTWARE\Classes.
Is "Allow inheritable permissions from parent to propagate to this object" checked? Tried "Reset permissions on all child objects" from the parent key?
If it doesn't help, then your system Registry hive is probably corrupted Confused

OldTroll wrote:
I may have to use the system recovery CD to go into DOS mode [...]
The recovery console is not DOS, it's a Win32 shell! Smile
Back to top
View user's profile Send private message
OldTroll



Joined: 18 Aug 2006
Posts: 5
Location: Oakland, CA

PostPosted: Tue Oct 10, 2006 2:53 am    Post subject: Let's Put This One To Rest Reply with quote

To "NumEric" (clever handle!) Your intution was correct, the same key in HKLU\Software was corrupt with permissions locked.
Thanks to everyone for good suggestions, unfortunately, rather than drag this out indefinitely, this appears to be a corrupt key with no easy fix.
..don j
The Old Troll by Oak Knoll
_________________
I don't miss the good ole days of CPM and 300 BAUD modems.
Back to top
View user's profile Send private message
JSLover



Joined: 20 Dec 2004
Posts: 542
Location: LooseChange911.com... the WTC attacks were done by the US Gov't... the official story is a lie...

PostPosted: Tue Oct 10, 2006 6:19 am    Post subject: Re: Let's Put This One To Rest Reply with quote

OldTroll wrote:
...and taken ownership. Even with that, can't delete the key.

...if Take Owner succeeded, you still need to grant you (or admin) full permissions (or at least delete permission)...I have a few keys in the registry I denied myself from writing to, on purpose...since programs run as me, I needed to deny myself to deny the programs...I prevent Regedit from saving the last viewed key, so everytime I start it up it loads at the top...so if I try to edit that key, it fails, but if I edit the permissions, I'm back in...

OldTroll wrote:
...rather than drag this out indefinitely, this appears to be a corrupt key with no easy fix.

...sorry, I never give up that quick...things to try...
  • Rename both keys...
      ...for example rename .ahk to .ahk-cor & AutoHotkeyScript to AutoHotkeyScript-cor...if you can't delete, perhaps you can rename?...then the broken permissions keys are outta the way...
  • Run Regedit under the SYSTEM account...
      psexec -s regedit

      ...(then try to delete/rename/re-permission)...
  • Gimme screenshots...
      HKCR\.ahk -> Right Click -> Permissions... -> <screenshot> -> Click Advanced... -> <screenshot>
      Repeat for HKCR\AutoHotkeyScript (unless they look the same)

      Note about screenshots: make them pngs & either only link to them or if you embed them in the forum, embed a small (<=640x480px) version & link it to the full size version...good screenshot prog...ScreenShotAssistant (I like 1.0, but there is a 2.0)...
  • Export as hive file...
      ...I have no idea if this would work, but you could try to export HKCR or HKCR\.ahk as a Registry Hive File (File -> Export -> Save as type), then I could load that hive in my regedit to examine, but...1) the users on your computer & mine are probably different, so it may not work...2) exporting as hive may or may not take the ACLs with it...
  • Gimme VNC access...
      ...so I can really test that mother!
  • Create HKCR\.ahc & HKCR\AutoHotkeyScript-tmp
      ...then just rename your scripts from *.ahk to *.ahc until you get it working for real...think of it as AutoHotCey...er, um...lol...

_________________

Home • Click image! • Blog
Back to top
View user's profile Send private message Visit poster's website
OldTroll



Joined: 18 Aug 2006
Posts: 5
Location: Oakland, CA

PostPosted: Tue Oct 10, 2006 3:33 pm    Post subject: Thanks to you, problem fixed! Reply with quote

It has been several years since I was a sys admin for a large firm, way back to NT 3.5 and up to 2000.
I must have made a mistake the first time in taking ownership, then changing permissions - your suggestions were right on.
By the way, now I'm much more interested in your film. Thanks for being a light in the dark.
_________________
I don't miss the good ole days of CPM and 300 BAUD modems.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group