Compartilhar via


Uninstalling the Lead Service

Removing the Lead Service requires you to delete the files that were added during the install process and to remove the policy and security metadata. To remove the Lead Service, complete the following procedure:

  1. Remove the policy metadata.

    Open a command prompt and change the working location to the folder where you installed the InstallLeadPolicyMetadata application. Type the following command and press Enter. Notice how the second command line parameter specifies the Id of the sample company:

    InstallLeadPolicyMetadata.exe /remove -1
    
If you are using a multitenant environment, be sure to include the additional parameter that specifies the tenant.
  1. Delete the InstallLeadPolicyMetadata.exe and configuration files.

    Go to the folder where you installed the InstallLeadPolicyMetadata application, typically found in this location:

    C:\Program Files\Microsoft Dynamics\GPWebServices

    Delete the following files.

    • InstallLeadPolicyMetadata.exe

    • InstallLeadPolicyMetadata.exe.config

  2. Remove the security metadata.

    From the command prompt, change the working location to the folder where you installed the InstallLeadSecurityMetadata application. Type the following command and press Enter:

    InstallLeadSecurityMetadata.exe /remove
    
If you are using a multitenant environment, be sure to include the additional parameter that specifies the tenant.
  1. Delete the InstallLeadSecurityMetadata.exe application and configuration files.

    Go to the folder where you installed the InstallLeadSecurityMetadata application, typically found in this location:

    C:\Program Files\Microsoft Dynamics\GPWebServices

    Delete the following files:

    • InstallLeadSecurityMetadata.exe

    • InstallLeadSecurityMetadata.exe.config

  2. Delete the lead service assemblies.

    Go to the Dynamics GP web services folder typically found in this location:

    C:\Program Files\Microsoft Dynamics\GPWebServices

    Delete the following files:

    • Microsoft.Dynamics.GP.Samples.Leads.dll

    • Sample.PolicyResources.dll

    • SampleLeadService.Contract.dll

  3. Delete the lead service configuration file.

    Go to the Dynamics GP web services configuration folder typically found in this location:

    C:\Program Files\Microsoft Dynamics\GPWebServices\ServiceConfigs

    Delete the following file:

    • SampleLeadService.Contract.config

  4. Restore the Service Host configuration file

    Remove the Lead Service configuration information from the Microsoft.Dynamics.GP.WebServices.ServiceHost.exe.config file. The host configuration file is typically found in this location:

    C:\Program Files\Microsoft Dynamics\GPWebServices

    Hint: If you saved a copy of the Microsoft.Dynamics.GP.WebServices.ServiceHost.exe.config file, you can replace the existing file with the original version.

    Open the configuration file with a text editor, remove the <service> elements with the names SampleLeadService and SampleLeadServiceLegacy. Save the changes and close the file.

  5. Delete the lead XSLT files.

    Go to the Dynamics GP web services "XSLT" folder typically found in this location:

    C:\Program Files\Microsoft Dynamics\GPWebServices\XSLT

    Delete the following files:

    • Microsoft.Dynamics.GP.Samples.Lead.LeadCreate.xslt

    • Microsoft.Dynamics.GP.Samples.Lead.LeadDelete.xslt

    • Microsoft.Dynamics.GP.Samples.Lead.LeadGetByKey.xslt

    • Microsoft.Dynamics.GP.Samples.Lead.LeadGetList.xslt

    • Microsoft.Dynamics.GP.Samples.Lead.LeadUpdate.xslt

  6. Restart the Microsoft Dynamics GP Service Host.

    Restart the Microsoft Dynamics GP Service Host. Open the Services console, click the service named Microsoft Dynamics GP Service Host. and then stop and restart the service.