MessageQueueInstaller.Uninstall(IDictionary) Method

Definition

Removes an installation by removing queue information from the registry. This method is meant to be used by uninstallation tools, which automatically call the appropriate methods.

public:
 override void Uninstall(System::Collections::IDictionary ^ savedState);
public override void Uninstall (System.Collections.IDictionary savedState);
override this.Uninstall : System.Collections.IDictionary -> unit
Public Overrides Sub Uninstall (savedState As IDictionary)

Parameters

savedState
IDictionary

A IDictionary that contains the post-installation state of the computer.

Remarks

If the UninstallAction is Remove, Uninstall also deletes the queue associated with the MessageQueue.

Typically, you do not call the methods of the MessageQueueInstaller from within your code; they are generally called only by the InstallUtil.exe installation utility (in uninstall mode). The utility automatically calls the Uninstall method to restore the parts of the system that were affected by the installation to their pre-installation states. This includes deleting registry information that is associated with the MessageQueue being uninstalled.

An application's uninstall routine uses the project installer's Installer.Context to automatically maintain information about the components that have already been uninstalled. This state information, which is passed to Uninstall as the savedState parameter, is continuously updated as the utility uninstalls each MessageQueueInstaller instance. Usually, it is not necessary for your code to explicitly modify this state information.

Applies to

See also