Volleynerd Knowledge Base

Wednesday, October 01, 2003


VC 7.x COM component categories unregistration

Since moving up to VC 7.x (.NET 2003), we've been getting access denied when unregistering a com component that has safe for scripting registry entries (in the .RGS file).

I haven't fully followed all the code down through statreg.h (line 1379 is key delete) but seems that only ONE of the component categories keys was being deleted....then when trying to delete the parent key, it would fail (0x80070005 -- acess denied).

Fix for now seems to be -- add ForceRemove before the category, then before each of the listed categories.
ForceRemove 'Implemented Categories'

{
ForceRemove {7DD95801-9882-11CF-9FA9-00AA006C42C4} =
s 'Controls that are safely scriptable'
ForceRemove {7DD95802-9882-11CF-9FA9-00AA006C42C4} =
s 'Controls safely initializable from persistent data'
}


keywords: com component safe for scripting implemented categories RGS ATL



Comments: Post a Comment

Home