471,339 Members | 1,239 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 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 4208
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christian Jost | last post: by
4 posts views Thread by Nathan Kovac | last post: by
7 posts views Thread by Larry Bird | last post: by
4 posts views Thread by Wayne | last post: by
3 posts views Thread by Michael | last post: by
2 posts views Thread by =?Utf-8?B?c3lzdGVtQ29uc3VsdGFudA==?= | last post: by
5 posts views Thread by dm3281 | last post: by

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.