How to perform a clean uninstall of the BlackBerry Enterprise Server software

Article ID: KB04096

Type: Support Content

Last Modified: 11-02-2012

 

Product(s) Affected:

  • BlackBerry Enterprise Server for Microsoft Exchange
  • BlackBerry Enterprise Server for IBM Domino
  • BlackBerry Enterprise Server for Novell GroupWise
  • BlackBerry Professional Software
CollapseEnvironment
  • BlackBerry Enterprise Server
  • BlackBerry Professional Software
CollapseOverview

To perform a clean removal of the BlackBerry Enterprise Server software, complete the following four tasks:

  1. Remove the BlackBerry Enterprise Server and the Research In Motion folders.
  2. Remove the Research In Motion registry entries.
  3. Delete the BlackBerry Mobile Data System (BlackBerry MDS) Services.
  4. Remove the database notification system.

Task 1

Remove the BlackBerry Enterprise Server software and the Research In Motion folders by completing the following steps:

Note: When removing the Research In Motion folder located in C:\Program Files\Common Files directory, any versions of BlackBerry Device Software installed on the BlackBerry Enterprise Server are removed.

  1. Log in to the BlackBerry Enterprise Server using the BlackBerry Enterprise Server service account.
  2. Click Start > Programs > Administrative Tools > Services.
  3. Stop all BlackBerry Enterprise Server services by clicking Stop Service for each service.
  4. Click Start > Settings > Control Panel.
  5. Double-click Add/Remove Programs.
  6. Click BlackBerry Enterprise Server and click Remove.

    Note: If the Remove option does not exist, select Change to launch the installer and then select Remove.

  7. Delete the Research In Motion folder located in the C:\Program Files directory.
  8. Delete the Research In Motion folder located in the C:\Program Files\Common Files directory.

For 64 bit systems the path would change to C:\Program Files (x86)


Task 2

To remove the Research In Motion registry entries, complete the following steps:

Warning: The following procedure involves modifying the computer registry. This can cause substantial damage to the Windows operating system. Document and back up the registry entries prior to implementing any changes.

Note: Some of these registry entries may not be present on the computer.

  1. Click Start > Run. Type regedit, and click OK.
  2. Go to HKEY_LOCAL_MACHINE\Software and delete the Research In Motion registry key.

    For 64 bit systems registry path would be HKEY_LOCAL_MACHINE\Software\Wow6432node

  3. Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths and delete the BESManmmc.dll and BlackBerryAgent.exe registry key.
  4. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services and delete the BBAttachServer registry key and any registry keys starting with BAS, BES or BlackBerry.
  5. Go to HKEY_LOCAL_MACHINE\System\ControlSet001\Services and delete the BBAttachServer registry key and any registry keys starting with BAS, BES or BlackBerry.
  6. Go to HKEY_LOCAL_MACHINE\System\ControlSet002\Services and delete the BBAttachServer registry key and any registry keys starting with BAS, BES or BlackBerry.
    OR
    Go to HKEY_LOCAL_MACHINE\System\ControlSet003\Services and delete the BBAttachServer registry key and any registry keys starting with BAS, BES or BlackBerry.
  7. Go to HKEY_CLASSES_ROOT\Installer\Products.
  8. Individually select each registry key under Products. As each registry key is selected, look in the right pane for the ProductName entry. If the entry value is BlackBerry Enterprise Server, delete the selected registry key folder and any subfolders.
  9. Go to HKEY_CURRENT_USER\Software and delete the Research In Motion registry key.
  10. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging SubSystem\Profiles and delete any registry keys named BlackBerryServer, BlackBerryManager, BlackBerry Server Management, or listed as the name of the BlackBerry Enterprise Server.
  11. Go to HKEY_USERS\.DEFAULT\Software\Research In Motion\ and delete this registry key.
  12. Restart the computer.

Task 3

For BlackBerry Enterprise Server 4.1 with BlackBerry MDS Services, complete the following steps to delete the BlackBerry MDS Services:

For Microsoft SQL Server Desktop Engine 2000 (MSDE 2000)
  1. Open a command prompt and type one of the following commands:

    Note: If the sa account has a password, type osql -U sa -P <password> where <password> is the sa account password and press ENTER.

    • If using Microsoft SQL Server Authentication, type osql -U sa and press ENTER.
    • If using Windows Trusted Authentication, type osql -E and press ENTER.

    Note: The cursor appears next to the 1>.

  2. Type the following commands in the specified order:

    1> drop database MDSS

    2> go

    Note: A message confirms the deletion of any files related to the MDSS database.

  3. Type the following commands in the specified order:

    1> drop database MDSS_DIS

    2> go

    Note: A message confirms the deletion of any files related to the MDSS_DIS database.

  4. Type the following command in the specified order:

    1> quit

  5. Close the command prompt.

For Microsoft SQL Server 2000

  1. Click Start > Programs > Microsoft SQL Server > Enterprise Manager.
  2. Expand Server Group > Server Name > Databases.
  3. Right-click the MDSS database and select Delete.
  4. Right-click the MDSS_DIS database and select Delete.

For Microsoft SQL Server 2005 and 2008

  1. Click Start > Programs > Microsoft SQL Server > SQL Server Management Studio.
  2. Expand Server Name > Databases.
  3. Right-click the MDSS database and select Delete.
  4. Right-click the MDSS_DIS database and select Delete.

Task 4

If the database notification system is installed it can be removed by completing the following steps:

  1. In the SQL Query Analyzer, browse to the <drive>\Database\DBInstallScripts\SQLServer\4.1 folder on the installation media.
  2. Open the NotifyUnInstall.sql file.
  3. Remove all commands after -- delete notification stored procedures and -- delete notification tables.
  4. Run the script.
Note: Restart the Microsoft SQL Server to complete the removal of the database notification system. If unable to restart the Microsoft SQL Server, rename the RimEsp.dll file (for example, to RimEspXXX.tmp).
CollapseAdditional Information
When removing BlackBerry Enterprise Servers running version 5.0 and higher following the below articles:

How to remove decommissioned BlackBerry Enterprise Servers from the BlackBerry Administration Service console
http://www.blackberry.com/btsc/KB20515

How to remove a standby BlackBerry Enterprise Server from a high availability pair
http://www.blackberry.com/btsc/KB21537

Disclaimer

By downloading, accessing or otherwise using the Knowledge Base documents you agree:

   (a) that the terms of use for the documents found at www.blackberry.com/legal/knowledgebase apply to your use or reference to these documents; and

   (b) not to copy, distribute, disclose or reproduce, in full or in part any of the documents without the express written consent of RIM.


Visit the BlackBerry Technical Solution Center at www.blackberry.com/btsc.