Solved

Uninstall Service that has been removed causes uninstall to end abnormally

Posted on 2007-11-29
3
162 Views
Last Modified: 2013-11-26
Is there any way I can tell the deployment project to ignore the fact that my service is not there during uninstall?

I have a deployment project that installs/uninstalls a service along with other stuff. It does this via Custom Actions entries in the setup project and the ProjectInstaller class in the service project. Somehow the service is gone (how is not the issue here). When I uninstall the product via the Add/Remove Programs option, I get the message :
 An Exception occured while uninstalling ... The specified service does not exist as an installed service.
When I answer the message, the uninstall rolls back. Thus I cannot uninstall my product. Removing it manually is a big pain.

Thank you
0
Comment
Question by:MikeBroderick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Expert Comment

by:surajguptha
ID: 20377012
So you are basically looking for a way by which it can uninstall the other stuff even though the service uninstall is unsuccessfull
0
 

Author Comment

by:MikeBroderick
ID: 20377403
No. I am looking for a way to tell it to not abend when it tries to delete a service that isnt there.
0
 
LVL 21

Accepted Solution

by:
surajguptha earned 500 total points
ID: 20396025
How about trying to install the windows service using this method
http://www.codeproject.com/cs/library/DynWinServiceInstallUtil.asp

and during uninstall try ignoring the failure in installing the windows service
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question