views:

603

answers:

2

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?

+2  A: 

You need to use registry element.

This should solve your issue you're having. There is a great WiX tutorial and registry is discussed in chapter called Beyond Files.

David Pokluda
Just FYI, the Registry element is deprecated in v3. The RemoveRegistryValue element seems to be the appropriate replacement in this case.
Daniel Pratt
+1  A: 

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.

Daniel Pratt