473,388 Members | 986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Windows Service, uninstalling

First if there is a better group to post this to please let me know.

Installutil Service.exe /u will uninstall a service. However, if I try to
reinstall the service without rebooting it error's out saying that the
service is marked for deletion. Is there a way to have windows complete the
service uninstall without rebooting?

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein
Jul 21 '05 #1
4 4327
I occasionally get that. Normally logging off is enough, or I have heard
removing the entry from the registry is also possible.

PS if you add an installer to the project you can simply right click to do
the install / uninstall from the IDE.

If there is a better answer, please feel free to post.
"Wayne" <Me******@community.nospam> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
First if there is a better group to post this to please let me know.

Installutil Service.exe /u will uninstall a service. However, if I try to
reinstall the service without rebooting it error's out saying that the
service is marked for deletion. Is there a way to have windows complete
the
service uninstall without rebooting?

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Jul 21 '05 #2
Do you have On Stop in your Service? In other words do you allow it to
stop?

"Wayne" <Me******@community.nospam> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
First if there is a better group to post this to please let me know.

Installutil Service.exe /u will uninstall a service. However, if I try to
reinstall the service without rebooting it error's out saying that the
service is marked for deletion. Is there a way to have windows complete
the
service uninstall without rebooting?

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Jul 21 '05 #3
I don't have anything in the event, and if I remember correctly the
allowstop is defaulted to true. Please let me know if I'm wrong.

Wayne
"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Do you have On Stop in your Service? In other words do you allow it to
stop?

"Wayne" <Me******@community.nospam> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
First if there is a better group to post this to please let me know.

Installutil Service.exe /u will uninstall a service. However, if I try to reinstall the service without rebooting it error's out saying that the
service is marked for deletion. Is there a way to have windows complete
the
service uninstall without rebooting?

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein


Jul 21 '05 #4
I believe the default is False for AllowStop, you might want to check your
windows service solution. I assume you avoid doing a little coding as
possible in the OnStart? Do you have a lot of code in your OnStop routine?
It sounds like your service is not able to stop in a timely manner and hence
why you get the "service is marked for deletion" error -- either holding on
to a resource that was not released or something (a datareader perhaps that
was not closed).

Do you have an OnShutDown defined? Are you "managed"? You may also want to
try forcing garbage collection.

In my initialize component I set

Me.CanPauseAndContinue = True
Me.CanShutdown = True

"Wayne" <Me******@community.nospam> wrote in message
news:ei***************@TK2MSFTNGP14.phx.gbl...
I don't have anything in the event, and if I remember correctly the
allowstop is defaulted to true. Please let me know if I'm wrong.

Wayne
"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Do you have On Stop in your Service? In other words do you allow it to
stop?

"Wayne" <Me******@community.nospam> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
> First if there is a better group to post this to please let me know.
>
> Installutil Service.exe /u will uninstall a service. However, if I try to > reinstall the service without rebooting it error's out saying that the
> service is marked for deletion. Is there a way to have windows complete
> the
> service uninstall without rebooting?
>
> --
> Thanks
> Wayne Sepega
> Jacksonville, Fl
>
>
> "When a man sits with a pretty girl for an hour, it seems like a
> minute.
> But
> let him sit on a hot stove for a minute and it's longer than any hour.
> That's relativity." - Albert Einstein
>
>



Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Christian Jost | last post by:
Hello I have the problem that my service under Windows NT SP 6a with Framework 1.1. doesn't run. I will receive an unknown exception from the framework all the time. But the service runs under...
3
by: MW | last post by:
Hi all, I have written a windows service application and setup project to install/deinstall my service. There is a requirement to run one more instance of the same service with different set...
4
by: Nathan Kovac | last post by:
I have a windows service project created with a timer that fires an event over and over. I created an installer & the service appears to install correctly. When I try to start the service I get a...
7
by: Larry Bird | last post by:
I have a windows service that want to un-install. When I run "installutil /u serivcename" I get the error that the serivce is not installed on my machine. However, when view the serivce console I...
4
by: Wayne | last post by:
First if there is a better group to post this to please let me know. Installutil Service.exe /u will uninstall a service. However, if I try to reinstall the service without rebooting it error's...
3
by: Michael | last post by:
Hello, I have created a windows service in C# that watches a folder, then moves files place in it to another server. When I test this service on my local machine it runs great. I have had it...
2
by: teejayem | last post by:
I am having problems creating a Windows Service using Visual Studio 2005. Code as follows:- Imports System.IO Imports System.Net.Mail
2
by: =?Utf-8?B?c3lzdGVtQ29uc3VsdGFudA==?= | last post by:
Can I use EnumchildWindows from a windows service to find the IE windows and Solitaire windows belonging to the logged on user? And if so then I'll need to know what call to use to get the users...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.