I have a heisenbug I could use help on.\n\nI have service that creates several registry keys. The service has an\nassociated INF file which has a DefaultUninstall section which is called by\nour product's installer when removing the service. The DefaultUninstall\nsection calls out a delreg section which deletes about 20 keys from the\nregistry. All but one of these keys gets deleted correctly.\n\nNow for the heisenberg portion of the bug. The installer prompts the user\nfor a reboot at then end of the removal process. If I pull up regedit\nbefore saying yes to the reboot, the key in question is indeed not in the\nregistry any longer and is not when the system comes back from reboot. If I\ndo not pull up regedit and just reboot, the key is still present when the\nsystem comes back from reboot. Obviously, regedit is causing the change to\nbe permanent in some way.\n\nIs there some lazy write problem here? Is there a way from the INF I can\nflush or commit the reg changes?\n\nThanks.\n\nBill M.