Wednesday, June 09, 2010

How to remove a windows service

Today I needed to reinstall CRM on a VPC and for some reason the Async Service wasn't unregistered properly. When I tried uninstalling it using installutil with the following command:

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\installutil" /u "C:\Program Files\Microsoft Dynamics CRM\Server\bin\CrmAsyncService.exe"


it couldn't find the file. Seemingly, the uninstaller had a job half way and removed the file but not unregistering it as a service. So, how to uninstall? Looking around a bit I found the following command did exactly this:

sc delete MSCRMAsyncService
Good to know, if needed.


Gustaf Westerlund
Microsoft Dynamics CRM Chief Architect
Logica
www.logica.com

No comments:

Post a Comment