Solved

Uninstall Service that has been removed causes uninstall to end abnormally

Posted on 2007-11-29
3
159 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
  • 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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