473,766 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4358
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******@commu nity.nospam> wrote in message
news:eU******** ******@TK2MSFTN GP09.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******@commu nity.nospam> wrote in message
news:eU******** ******@TK2MSFTN GP09.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*****@pacbel l.net> wrote in message
news:eR******** ******@tk2msftn gp13.phx.gbl...
Do you have On Stop in your Service? In other words do you allow it to
stop?

"Wayne" <Me******@commu nity.nospam> wrote in message
news:eU******** ******@TK2MSFTN GP09.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.CanPauseAndC ontinue = True
Me.CanShutdown = True

"Wayne" <Me******@commu nity.nospam> wrote in message
news:ei******** *******@TK2MSFT NGP14.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*****@pacbel l.net> wrote in message
news:eR******** ******@tk2msftn gp13.phx.gbl...
Do you have On Stop in your Service? In other words do you allow it to
stop?

"Wayne" <Me******@commu nity.nospam> wrote in message
news:eU******** ******@TK2MSFTN GP09.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
2125
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 Windows 2000 and XP. I removed the whole service code so that I have had only the start and stop methodes and a little worker-thread. "Normal" Applications run very well on the NT-Machine. Does somebody had the same problem?
3
2610
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 of configurations and connecting to a different database. Both the services will run on the same box. Is it possible to do that? Someone suggested that there are entries in the windows registry that can be
4
3320
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 message that the service started and stopped. Is there some setting I need to do to make the service keep going until I tell it to stop? Thanks, Nathan
7
7946
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 still see my service there. What must be done to remove a windows service written in VB.Net from my system. I'm trying un-install the service because I'm compiling it as a console application to perform debugging. I think it will be easier to...
4
271
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 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
3
2267
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 running for about 5 days now. I have put in plenty of error coding just in case something goes wrong. My problem is that I have tried to move it to a Windows 2003 server. It installs with no problem. When I start the service it gives me a message...
2
1783
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
2290
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 desktop window handle to enum them - Assuming GetDesktopWindow doesn't at this point. I can do all this in a Forms application (trying to convert to service) but as a service it simply doesn't think there are any of those windows open.
5
3307
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? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
9571
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.