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:
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.
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
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.
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
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
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
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.
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
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.