How to unregister a windows service?
-
I have made a .net application which uses a COM component hosted by a C++ service. The service is a simple C++ service developed using ATL (and not using MFC). Everything works fine on my dev machine as most of the work is done by VisualStudio itself. Now I have to make installer of my application (application should be able to get install on XP, VISTA and Windows 7). I am following below steps to register my service: "C:\Program Files\MyApplication\MyService.exe" -service (For registering the service) "C:\Program Files\MyApplication\MyService.exe" -Embedding (For registering the COM component hosted by service) And to unregister my service and COM component hosted by it I am following below step: "C:\Program Files\MyApplication\MyService.exe" -UnregServer Q: Please let me know if steps to register and unregister the service and COM component it hosts, are correct or I am doing something wrong. Or I am missing something. I don't have VISTA and Windows 7 on my machine and have not ever worked on them. So its important to confirm before I release my application. Thanks in Advance Regards Aseem