I kind of get the feeling that this is something that would be done by mounting the hive in another instance of windows or perhaps a live Linux, or during the set. I cant see how you'd do it programmatically I'm afraid (unless your program is a low level on running in the pre-boot stage - like when you set up a new os).
I did find this - but it's old and may not be very useful: https://www.raymond.cc/blog/how-to-edit-windows-registry-key-values-without-booting-in-windows/ regards, Preet, in Auckland NZ On Fri, 22 Apr 2022 at 13:15, Greg Keogh <gfke...@gmail.com> wrote: > Folks, TGIF > > I have to delete a registry key that is a direct child of the > HKEY_CLASSES_ROOT hive. > > Normally deleting a key is easy because you just open the parent key as > writable and call DeleteSubKeyTree. > > In this case the parent is the HKCR hive itself, and I can't figure out > how to open it as writable. The Registry.ClassesRoot property is static and > has no open methods. > > Chers, > *Greg K* >