Microsoft KB Archive/946980

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:42, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 946980

Article Last Modified on 1/4/2008



APPLIES TO

  • Microsoft Dynamics CRM 4.0



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista


INTRODUCTION

This article describes how to manually remove the Microsoft Dynamics CRM 4.0 server.

MORE INFORMATION

Typically, you can use Add or Remove Programs in Control Panel to remove the Microsoft Dynamics CRM server. You can also run the Microsoft Dynamics CRM server installation program to remove the Microsoft Dynamics CRM server.

Note You can run the ServerSetup.exe file to run the Microsoft Dynamics CRM server installation program.

However, if a problem occurs when you use one of these methods to remove the Microsoft Dynamics CRM server, you must manually remove the Microsoft Dynamics CRM server.

Note The Microsoft Dynamics CRM server contains many components. These components are related to many applications and to many technologies. For example, the components are related to Windows Server, to Internet Information Services (IIS), to Microsoft SQL Server, to SQL Server Reporting Services (SSRS), and to the Microsoft .NET Framework. Therefore, if you must completely remove the Microsoft Dynamics CRM server, consider completely rebuilding the computer instead of manually removing the Microsoft Dynamics CRM server.

To manually remove the Microsoft Dynamics CRM server, follow these steps.

Note The following steps describe how to remove the applications that are installed in a Full Server configuration. You can use similar steps to remove specific server roles. Additionally, the following steps do not remove all the components that are installed when you install the Microsoft Dynamics CRM server. However, after you follow these steps, you can reinstall the Microsoft Dynamics CRM server.

Step 1: Stop the Microsoft Dynamics CRM Asynchronous Processing service

  1. Click Start, point to All Programs, point to Administrative Tools, and then click Services.
  2. Right-click Microsoft Dynamics CRM Asynchronous Processing Service, and then click Stop.

Step 2: Stop the Indexing service

  1. Click Start, point to All Programs, point to Administrative Tools, and then click Services.
  2. Right-click Indexing Service, and then click Stop.

Step 3: Configure the Web site and the application pool

  1. Log on to the computer that is running Internet Information Services (IIS). This computer has the Microsoft Dynamics CRM 4.0 Web site installed.
  2. Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
  3. Expand the computer name, and then expand Web Sites.
  4. Right-click the Microsoft Dynamics CRM 4.0 Web site, click Stop, and then click Yes.


Note By default, the name of the Microsoft Dynamics CRM 4.0 Web site is Microsoft Dynamics CRM.

  1. Right-click the Microsoft Dynamics CRM 4.0 Web site, and then click Properties. Click the Home Directory tab, click DefaultAppPool in the Application pool list, and then click Remove.
  2. Click the ISAPI Filters tab, click CRM.Default.Addon isapi, and then click Remove.
  3. Click OK.
  4. Expand Application Pools, right-click the Microsoft Dynamics CRM 4.0 application pool, click Delete, and then click Yes.


Note By default, the name of the application pool is CRMAppPool.

  1. Close IIS Manager.

Step 4: Delete the Microsoft Dynamics CRM program files and the Microsoft Dynamics CRM folders

To do this, delete the following folder:

Drive:\Program Files\Microsoft Dynamics CRM


Notes

  • If the Microsoft Dynamics CRM 4.0 server installation program created the Web site, the Web site is located in the following folder:

    Drive:\Program Files\Microsoft Dynamics CRM

    If you delete this folder, you also delete the Microsoft Dynamics CRM 4.0 Web site. Therefore, if you delete this folder, you have to create a new Microsoft Dynamics CRM Web site when you reinstall the Microsoft Dynamics CRM server. You can also re-create the default folder for the Web site.
  • If you install the Microsoft Dynamics CRM Web site on the default Web site, the Microsoft Dynamics CRM Web site is in the following folder:

    Drive:\Inetpub\wwwroot

    Therefore, you have to delete all the files and all the folders except the Aspnet_client folder in the Drive:\Inetpub\wwwroot folder.

Step 5: Delete the Active Directory security groups

  1. Log on to a domain controller as a user who has rights to delete the security groups.
  2. Click Start, point to All Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
  3. Expand the domain node.
  4. Expand the node of the organizational unit (OU) on which you install the Microsoft Dynamics CRM 4.0 server.
  5. Delete the following security groups:
    • PrivReportingGroup
    • PrivUserGroup
    • ReportingGroup
    • SQLAccessGroup
    • UserGroup
    To delete a security group, right-click the security group that you want to delete, and then click Delete.

Note If there is more than one deployment of Microsoft Dynamics CRM 4.0 in the domain, you may have many security groups. To find the correct security group, follow these steps:

  1. Open SQL Server Management Studio, and then click New Query.
  2. Run the following statement against the MSCRM_Config database.

    select Id, DatabaseName, FriendlyName from Organization
  3. Note the ID of the first organization. The ID is used in the name of the security group.
  4. Find the security group in the Active Directory directory service. The name of the security group for the deployment contains the ID that you noted in step c earlier in this section.

Step 6: Remove the SQL Server logins

  1. Log on to the computer that is running the instance of SQL Server 2005.
  2. Click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Server Management Studio.
  3. Expand the computer name, expand Security, and then expand Logins.
  4. Locate the following logins:
    • DomainName\PrivReportingGroup
    • DomainName\ReportingGroup
    • DomainName\SQLAccessGroup

    Notes

    • The DomainName placeholder represents the actual name of the domain in which the logins are located.
    • To determine the groups that belong to the Microsoft Dynamics CRM deployment that you want to delete, compare the complete names of these groups to the names of the groups that exist in the Active Directory. By default, the Active Directory groups exist in the OU that was created by the Microsoft Dynamics CRM server installation program. The group names in the Logins folder of SQL Server Management Studio contain the name and a GUID.
  5. Delete the logins. To do this, right-click the login, click Delete, and then click OK.
  6. Close SQL Server Management Studio.

Step 7: Remove the Microsoft Dynamics CRM subkeys

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista


  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate the following registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM

  3. Right-click MSCRM, click Delete, and then click Yes.
  4. Locate the following registry subkey:

    HKEY_CLASSES_ROOT\Installer\Products

  5. On the Edit menu, click Find.
  6. In the Find what box, type Microsoft Dynamics CRM, and then click Find Next.
  7. Right-click the GUID, and then click Delete. For example, the GUID may be 059DD8CB00184F24E99A62CF4D6109FA.
  8. Locate the following registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders\

  9. Delete all the entries that begin with the following path:

    Drive:\Program Files\Microsoft Dynamics CRM\

  10. Locate the following registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData

  11. On the Edit menu, click Find.
  12. In the Find what box, type Microsoft Dynamics CRM, and then click Find Next.
  13. Right-click the GUID, and then click Delete. For example, the GUID may be 059DD8CB00184F24E99A62CF4D6109FA.
  14. To find the next entry to remove, press F3.
  15. Right-click the GUID, and then click Delete.
  16. Repeat steps 14 and 15 to delete all the entries that are in the components registry and in the products registry.
  17. Locate the following subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

  18. On the Edit menu, click Find. In the Find what box, type Microsoft Dynamics CRM, and then click Find Next.
  19. Right-click the GUID, and then click Delete. For example, the GUID may be 059DD8CB00184F24E99A62CF4D6109FA.

Step 8: Use "Add or Remove Programs" to remove the application entry if the application entry still exists

Note Although you cannot use Add or Remove Programs in Control Panel to uninstall the Microsoft Dynamics CRM 4.0 server, you can remove the entries from the Add or Remove Programs list. To do this, follow these steps:

  1. Click Start, point to All Programs, click Control Panel, and then click Add or Remove Programs.
  2. Click Microsoft Dynamics CRM 4.0 Server, click Remove, and then click Yes.

Step 9: Delete the Microsoft Dynamics CRM server from the Start menu

  1. Start Windows Explorer, and then locate the following folder:

    Drive:\Documents and Settings\All Users\Start Menu\Programs

  2. Right-click the folder, and then click Delete.

Step 10: Delete the Microsoft Dynamics CRM databases

Warning After you complete this step, all the data that is maintained in Microsoft Dynamics CRM is removed. If you want to keep the data, you can skip this step.

To delete the Microsoft Dynamics CRM databases, follow these steps:

  1. Log on to the server that is running SQL Server 2005 and on which the Microsoft Dynamics CRM 4.0 databases are installed.
  2. Click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click Microsoft SQL Server Management Studio.
  3. When you are prompted to connect to a server that is running SQL Server, enter the server on which the Microsoft Dynamics CRM 4.0 databases are installed in the Server name box, and then click Connect.
  4. Delete the configuration database.


Note If you want to reinstall the Microsoft Dynamics CRM 4.0 server on this instance of SQL Server, you must delete this database.

To delete the configuration database, expand Databases, right-click MSCRM_CONFIG, click Delete, and then click OK.

  1. Delete the organization database.


Note If you want to use a different organization name when you reinstall the Microsoft Dynamics CRM 4.0 server, you do not have to do this step. After you reinstall the Microsoft Dynamics CRM server, you can use the Import Organization wizard in Deployment Manager to import the organization database.

To delete the organization database, expand Databases, right-click OrganizationName_MSCRM, click Delete, and then click OK.

Note The OrganizationName placeholder represents the actual organization name.

  1. Close SQL Server Management Studio.

Step 11: Delete assemblies in the GAC

  1. Log on to the computer that has the Microsoft Dynamics CRM 4.0 server installed.
  2. Click Start, point to All Programs, point to Administrative Tools, and then click Microsoft .NET Framework 2.0 Configuration.
  3. In the Tasks area, click Manage the Assembly Cache, and then click View List of Assemblies in the Assembly Cache.
  4. In the Assembly Name pane, delete the following assemblies:
    • Microsoft.Crm
    • Microsoft.Crm.Admin.AdminService
    • Microsoft.Crm.ApplicationBuildUpgrade
    • Microsoft.Crm.DuplicateDetection
    • Microsoft.Crm.Faxes.FxsComWrapper
    • Microsoft.Crm.Entities
    • Microsoft.Crm.MetadataHelper
    • Microsoft.Crm.ObjectModel
    • Microsoft.Crm.Platform.Passport
    • Microsoft.Crm.Platform.Sdk
    • Microsoft.Crm.Platform.Server
    • Microsoft.Crm.Reporting
    • Microsoft.Crm.ReportingServices
    • Microsoft.Crm.Scheduling
    • Microsoft.Crm.Sdk
    • Microsoft.Crm.SdkProxy
    • Microsoft.Crm.SdkProxy.XmlSerializers
    • Microsoft.Crm.SdkTypeProxy
    • Microsoft.Crm.SdkTypeProxySerializers
    • Microsoft.Crm.SqlGovernor.Proxy
    • Microsoft.Crm.WebStore

    Note The names of these assemblies start with "Microsoft.Crm."

    To delete the assemblies, click the assemblies that you want to delete, and then click Delete.


After you complete these steps, you can reinstall the Microsoft Dynamics CRM 4.0 server.

Note Before you reinstall the Microsoft Dynamics CRM 4.0 server, you must restart the Indexing service. Additionally, you must re-enable the Web site. Otherwise, you may receive an error message or a warning message in the Environment Diagnostics wizard when you reinstall the Microsoft Dynamics CRM server.

Keywords: kbmbsinstallation kbexpertisebeginner kbmbsmigrate kbhowto kbexpertiseinter KB946980