3

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?

Adam Tegen
  • 25,378
  • 33
  • 125
  • 153

2 Answers2

2

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
  • 10,693
  • 5
  • 28
  • 26
  • Just FYI, the Registry element is deprecated in v3. The RemoveRegistryValue element seems to be the appropriate replacement in this case. – Daniel Pratt Mar 12 '09 at 18:07
1

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
  • 12,007
  • 2
  • 44
  • 61