Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 19, 2008 08:38 PM by andersco2k6
May 15, 2008 05:17 PM|LINK
Hi- This isn't directly related to web deploy projects but I am hoping someone here might know the answer. I am creating a Setup project for a solution that has a windows service and a couple of windows forms applications. For the service, it is installing
just fine, but the Add/Remove programs tool is not uninstalling it completely (it still shows up in the services console). I overrided the Install() method on the ProjectInstaller class and added code to automatically start the service using the "sc" command,
and that gets called correctly. I also overrided the Uninstall() method to use "sc delete" to delete the service, but that code isn't being called when I uninstall through Add/Remove programs. It is called when I use "installUtil /u" on the service however.
Is there a step I'm missing to make sure the overridden Uninstall() method gets called when the Add/Remove programs tool is used to uninstall the application? Thanks!
May 19, 2008 07:03 AM|LINK
This forum focuses on ASP.NET Web Deployment Projects.
Based on your description, I suggest you ask this question on
ClickOnce and Setup & Deployment Projects, where have many experts on this issue.
I hope this helps.
May 19, 2008 03:30 PM|LINK
Yeah I've asked the question there too, but unfortunately nobody knows the answer there yet either [:(]
May 19, 2008 08:38 PM|LINK
The answer is here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3348968&SiteID=1 if anyone is interested