Solved

Uninstall Service that has been removed causes uninstall to end abnormally

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal reports vb.net 2 41
REXEX help Part 2 2 25
Import a txt file into a DataGridView and TextBox 20 38
RLDC Reporting in Visual studio 11 16
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

822 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