Re: delreg section in INF not truly deleting registry entry



Maybe regedit blocks the attempts of other processes to delete its
current-under-cursor key?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"Bill McKenzie" <bkmckenzie@xxxxxxxxxxxxx> wrote in message
news:ehfQ5%23EDIHA.5044@xxxxxxxxxxxxxxxxxxxxxxx
I have a heisenbug I could use help on.

I have service that creates several registry keys. The service has an
associated INF file which has a DefaultUninstall section which is called by
our product's installer when removing the service. The DefaultUninstall
section calls out a delreg section which deletes about 20 keys from the
registry. All but one of these keys gets deleted correctly.

Now for the heisenberg portion of the bug. The installer prompts the user
for a reboot at then end of the removal process. If I pull up regedit
before saying yes to the reboot, the key in question is indeed not in the
registry any longer and is not when the system comes back from reboot. If I
do not pull up regedit and just reboot, the key is still present when the
system comes back from reboot. Obviously, regedit is causing the change to
be permanent in some way.

Is there some lazy write problem here? Is there a way from the INF I can
flush or commit the reg changes?

Thanks.

Bill M.



.



Relevant Pages

  • Re: delreg section in INF not truly deleting registry entry
    ... key removed from regedit it seemed to confirm that the service was not ... there's no intentional locking built into the registry. ... for a reboot at then end of the removal process. ... If I pull up regedit ...
    (microsoft.public.development.device.drivers)
  • Re: Error Message re Administrator
    ... > the Registry and I can now open Tools/Internet Options. ... If so, uncheck it. ... In Regedit, navigate to this key: ... Exit regedit and reboot. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Stopping software from starting when Windows starts?
    ... the registry is loaded off the hard drive early on... ... change to msconfig and then reboot. ... >> install inadverdently selecte option to load ... If you don't know how regedit works don't do this. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: UAC sucks. Ask us once, then dont ask again
    ... regedit, he mentioned "any change to the registry". ... statement - that you get the UAC prompt for "any change to the ... and be prompted for a reboot. ...
    (microsoft.public.windows.vista.general)
  • Re: delreg section in INF not truly deleting registry entry
    ... Intuitively I would have felt the same way, i.e. if some process has a registry key open then the key might not be deleteable, even though there's no intentional locking built into the registry. ... for a reboot at then end of the removal process. ... do not pull up regedit and just reboot, the key is still present when the ... flush or commit the reg changes? ...
    (microsoft.public.development.device.drivers)

Loading