473,379 Members | 1,167 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,379 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 4325
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.