Microsoft KB Archive/202124

= How To Manually Uninstall Microsoft Message Queue Server =

Article ID: 202124

Article Last Modified on 7/2/2004

-

APPLIES TO


 * Microsoft Message Queue Server 1.0

-



This article was previously published under Q202124



SUMMARY
In the event that Microsoft Message Queue Server (MSMQ) must be uninstalled manually, the following steps will demonstrate how to remove the necessary MSMQ components to allow a clean re-installation of MSMQ without any conflicts with a previous installation.



MORE INFORMATION
Depending on the type of MSMQ installation, the following information will demonstrate the necessary steps to remove MSMQ. It is very important to backup the system prior to performing these steps. Failure to do so may result in the loss of critical files.

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

 For Microsoft Windows NT Primary Enterprise Controller (PEC), Primary Site Controller (PSC), Backup Site Controller (BSC), Routing Server (RS), or Independent Client (IC):

 Stop the Microsoft Message Queue and the Microsoft Distributed Transaction Coordinator (MSDTC) services in the Control Panel Services applet.  Stop the MQAC driver. Open a new command prompt window and execute the command:   net stop mqac  For a site controller (a PEC, PSC, or BSC), use SQL enterprise manager to delete the MQIS database and both MQIS devices (mqisdata and mqislog).

To ensure that the device has been dropped from the sysdevices table, do the following:  Run ISQL or SQL Query Analyzer. Select Master database (default).</li> Type sp_helpdevice, and then press CTRL-E to execute the query.</li> In the results, verify if the MQIS devices are present.</li> If they are present, then type sp_dropdevice MQISData, MQISLog and then execute the query to drop the MQIS devices from the sysdevices table.</li></ol> </li>  Delete the folder where MSMQ is installed. For example: <pre class="fixed_text">  C:\Program Files\MSMQ </li> Delete the following MQ DLL's and files from the C:\Winnt\System32 directory (NOTE: Not all of the files in the following list will appear in every type of MSMQ installation, these shown are for a PEC):

<ul> Mqcertui.dll</li> Mqdbmgr.dll</li> Mqdscli.dll</li> Mqdssrv.dll</li> Mqis.dll</li> Mqkey.dll</li> Mqkeyhlp.dll</li> Mqlogmgr.dll</li> Mqmailoa.dll (This DLL is only installed with the Exchange connector.)</li> mqmailvb.dll (This DLL is only installed with the Exchange connector.)</li> Mqoa.dll</li> <li>Mqperf.dll</li> <li>Mqqm.dll</li> <li>Mqrt.dll</li> <li>Mqsrvkey.exe</li> <li>Mqsvc.exe</li> <li>Mqutil.dll</li> <li>Mqxp32.dll</li></ul> </li> <li>Delete MQAC.sys from C:\Winnt\System32\Drivers.</li> <li> Delete the Microsoft Message Queue shotcut folder. Depending on where MSMQ was installed from, the shortcut folder may be in a different location. For example: <pre class="fixed_text">  C:\WinNT\Profiles\All Users\Start Menu\Programs\

or for the Option Pack version:

<pre class="fixed_text">  C:\WinNT\Profiles\All Users\Start Menu\Programs\Windows NT 4.0 Option Pack </li> <li> Use RegEdit or RegEdt32 to delete the following MSMQ entries: (Select the MSMQ folder then click Delete from the Edit menu).

<pre class="fixed_text">  HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSMQ HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MQAC HKEY_LOCAL_MACHINE\System\ControlSet###\ControlSets\Services\MSMQ NOTE: The "###" represents different number values. Not all ControlSet### entries will have an MSMQ entry, but remove all that do. </li> <li>For a PSC, BSC, RS, or IC installation, delete the computer from Microsoft Message Queue Explorer on a different computer in the Enterprise. To remove the computer from the Enterprise:

<ol style="list-style-type: lower-alpha;"> <li>Launch Microsoft Message Queue Explorer and browse the computer to be removed.</li> <li>Right-click on the computer and select Properties.</li> <li>On the Security tab, click Ownership then click Take Ownership.</li> <li>Click Permissions and add the currently logged on user with Full Control(All) and click OK.</li> <li>Right-click the computer and select Delete.</li></ol> </li></ol> </li> <li>For Microsoft Windows NT MSMQ Dependent Client:

<ol> <li> Delete the folder where MSMQ is installed. For example: <pre class="fixed_text">  C:\Program Files\MSMQ </li> <li> Delete the Microsoft Message Queue shotcut folder. Depending on where MSMQ was installed from, the shortcut folder may be in a different location. For example: <pre class="fixed_text">  C:\WinNT\Profiles\All Users\Start Menu\Programs\

or for Option Pack version:

<pre class="fixed_text">  C:\WinNT\Profiles\All Users\Start Menu\Programs\Windows NT 4.0 Option Pack </li> <li> Use RegEdit or RegEdt32 to delete the following MSMQ entries: (Select the MSMQ folder then click Delete from the Edit menu) <pre class="fixed_text">HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ </li> <li>Delete the following MQ DLL's and files from the C:\Winnt\System32 directory (NOTE: Not all of the following files listed will appear in every type of MSMQ installation.):

<ul> <li>Mqcertui.dll</li> <li>Mqdbmgr.dll</li> <li>Mqdscli.dll</li> <li>Mqdssrv.dll</li> <li>Mqis.dll</li> <li>Mqkey.dll</li> <li>Mqkeyhlp.dll</li> <li>Mqlogmgr.dll</li> <li>Mqmailoa.dll</li> <li>Mqmailvb.dll</li> <li>Mqoa.dll</li> <li>Mqperf.dll</li> <li>Mqqm.dll</li> <li>Mqrt.dll</li> <li>Mqsrvkey.exe</li> <li>Mqsvc.exe</li> <li>Mqutil.dll</li> <li>Mqxp32.dll</li></ul> </li></ol> </li> <li>For Windows 95 Independent or Dependent Client: <ol> <li>Delete the folder where MSMQ is installed. For example:

C:\Program Files\MSMQ</li> <li>Delete the Microsoft Message Queue shotcut folder. For example:

C:\Win95\Start Menu\Programs\</li> <li> Use RegEdit or RegEdt32 to delete the following MSMQ entries: (Select the MSMQ folder then click Delete from the Edit menu). <pre class="fixed_text">HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ </li> <li>If the computer is an Independent Client, delete the computer from the Microsoft Message Queue Explorer on a different computer in the Enterprise. To remove the computer from the Enterprise:

<ol style="list-style-type: lower-alpha;"> <li>Launch Microsoft Message Queue Explorer and browse the computer to be removed.</li> <li>Right-click on the computer and select Properties.</li> <li>On the Security tab, click Ownership then click Take Ownership.</li> <li>Click Permissions and add the currently logged on user with Full Control(All) and click OK.</li> <li>Right-click the computer and select Delete.</li></ol> </li> <li>Delete the following MQ DLL's and files from the C:\Windows\System directory (NOTE: Not all of the following files listed will appear in every type of MSMQ installation):

<ul> <li>Mqac.dll</li> <li>Mqcertui.dll</li> <li>Mqdscli.dll</li> <li>Mqkey.dll</li> <li>Mqkeyhlp.dll</li> <li>Mqlogmgr.dll</li> <li>Mqmailoa.dll</li> <li>Mqmailvb.dll</li> <li>Mqoa.dll</li> <li>Mqpostbt.exe</li> <li>Mqqm.dll</li> <li>Mqrt.dll</li> <li>Mqsetup.dll</li> <li>Mqsvc.exe</li> <li>Mqutil.dll</li> <li>Mqxp32.dll</li></ul> </li></ol> </li></ul>

After the steps earlier have been implemented, restarting the computer will complete the removal of MSMQ.

NOTE: For PEC, PSC, BSC, RS, or IC installations, upon restart the MSDTC service will be started, and the Microsoft Message Queue service will no longer appear in the Control Panel Services applet.

<div class="references_section">