MessageQueueInstaller.Uninstall Method (IDictionary)

 

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.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public override void Uninstall(
	IDictionary savedState
)

Parameters

savedState
Type: System.Collections.IDictionary

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

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.

.NET Framework
Available since 1.1
Return to top
Show: