View Full Version : How do I use Uninstall Behavior for Registry Keys?

05-28-2004, 04:11 PM
I need to delete a registry branch with unknown numbers of sub-keys and values. I have read in the help about "Setting Uninstall Behavior for Registry Keys", but I cannot seem to get the context menu that it speaks of. If anyone can help I would appreciate it.

06-01-2004, 10:54 AM
If my intuition is working correctly, you're using an InstallScript project, and cannot find a context menu that is specific to MSI based projects. Instead of that, I would suggest using the function RegDBDeleteKey (http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/devstudio9helplangref/LangrefRegDBDeleteKey.htm) to delete your key and subkeys.

Note also that RegDBCreateKeyEx (http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/devstudio9helplangref/LangrefRegDBCreateKeyEx.htm) will log the created (or set) key for removal at uninstallation, which should also remove the entire set of it and its subkeys.

The registry view is a visual way of representing calls to these and/or other registry functions.