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!
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
andersco2k6
Member
121 Points
39 Posts
ProjectInstaller class overridden Uninstall method not being called
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!
Thomas Sun –...
All-Star
64969 Points
5621 Posts
Re: ProjectInstaller class overridden Uninstall method not being called
May 19, 2008 07:03 AM|LINK
Hi,
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.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
andersco2k6
Member
121 Points
39 Posts
Re: ProjectInstaller class overridden Uninstall method not being called
May 19, 2008 03:30 PM|LINK
Yeah I've asked the question there too, but unfortunately nobody knows the answer there yet either [:(]
andersco2k6
Member
121 Points
39 Posts
Re: ProjectInstaller class overridden Uninstall method not being called
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