Search code examples
wixregistrywix3visual-studio-addins

How to find and delete registry entries in Wix


I am trying to write a Wix3 install for a visual studio add-in.

I have it just about there, but I need reset the plugin by deleting a registry entry. Specifically any value starting with

HKCU\Software\Microsoft\VisualStudio\8.0\PreloadAddinStateManaged\MyAddinName.Connect;

How to a convince Wix to delete any such entries?


Solution

  • Is your issue the need to do a partial match on the registry value. If not, then you might be looking for the RemoveRegistryValue element (nests under Component). If yes, then I would think you'd probably need to create a custom action to search for the registry value(s) to delete and populate the RemoveRegistry table with what you find. I would think a DTF (Deployment Tools Foundation) custom action would a viable option.