I am referring specifically to windows 7.
I have code that associates a certain extension with my application as proposed by webJose on the following page: What registry
Deleting UserChoice
should revert the default program to the standard file association keys (which starts with the ProgID in HKCU). Barring that you could also delete OpenWithList
, which would be reverting with extreme prejudice.
Edit: Check out Registry Key Security and Access Rights on MSDN, particularly the RegSetKeySecurity function. Remember that you'll need to grant yourself administrative control to the key before you can delete it.