469,267 Members | 1,643 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

Uninstalling a Windows Service

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 debug. I have not been able to get the service running because of errors within my code. I know that I can debug a windows service however, you must first get things running to debug and I'm not at that point yet. For now I just want to un-install it and debug.

Thanks
Nov 20 '05 #1
7 7457
Please see error message below:

C:\Documents and Settings\Louis\My Documents\Visual Studio Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The uninstall is beginning.
See the contents of the log file for the c:\documents and settings\louis\my docu
ments\visual studio projects\alertprocessor\alertprocessor\bin\alertpr ocessor.ex
e assembly's progress.
The file is located at c:\documents and settings\louis\my documents\visual studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.InstallLog.
Uninstalling assembly 'c:\documents and settings\louis\my documents\visual studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.exe'.
Affected parameters are:
assemblypath = c:\documents and settings\louis\my documents\visual studio pro
jects\alertprocessor\alertprocessor\bin\alertproce ssor.exe
logfile = c:\documents and settings\louis\my documents\visual studio projects
\alertprocessor\alertprocessor\bin\alertprocessor. InstallLog
Removing EventLog source AlertProcessor.
Warning: The source AlertProcessor is not registered on the local machine.
Service AlertProcessor is being removed from the system...
An exception occurred during the uninstallation of the System.ServiceProcess.Ser
viceInstaller installer.
System.ComponentModel.Win32Exception: The specified service does not exist as an
installed service
An exception occurred while uninstalling. This exception will be ignored and the
uninstall will continue. However, the application might not be fully uninstalle
d after the uninstall is complete.

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored and the
uninstall will continue. However, the application might not be fully uninstalle
d after the uninstall is complete.

C:\Documents and Settings\Louis\My Documents\Visual Studio Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The uninstall is beginning.
See the contents of the log file for the c:\documents and settings\louis\my docu
ments\visual studio projects\alertprocessor\alertprocessor\bin\alertpr ocessor.ex
e assembly's progress.
The file is located at c:\documents and settings\louis\my documents\visual studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.InstallLog.
Uninstalling assembly 'c:\documents and settings\louis\my documents\visual studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.exe'.
Affected parameters are:
assemblypath = c:\documents and settings\louis\my documents\visual studio pro
jects\alertprocessor\alertprocessor\bin\alertproce ssor.exe
logfile = c:\documents and settings\louis\my documents\visual studio projects
\alertprocessor\alertprocessor\bin\alertprocessor. InstallLog
Removing EventLog source AlertProcessor.
Warning: The source AlertProcessor is not registered on the local machine.
Service AlertProcessor is being removed from the system...
An exception occurred during the uninstallation of the System.ServiceProcess.Ser
viceInstaller installer.
System.ComponentModel.Win32Exception: The specified service does not exist as an
installed service
An exception occurred while uninstalling. This exception will be ignored and the
uninstall will continue. However, the application might not be fully uninstalle
d after the uninstall is complete.

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored and the
uninstall will continue. However, the application might not be fully uninstalle
d after the uninstall is complete.

C:\Documents and Settings\Louis\My Documents\Visual Studio Projects\AlertProcess
or\AlertProcessor\bin>

"Larry Bird" wrote:
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 debug. I have not been able to get the service running because of errors within my code. I know that I can debug a windows service however, you must first get things running to debug and I'm not at that point yet. For now I just want to un-install it and debug.

Thanks

Nov 20 '05 #2
The last time I had trouble uninstalling a service I wrote I had forgot to
stop it first...?

Greg

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Please see error message below:

C:\Documents and Settings\Louis\My Documents\Visual Studio
Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The uninstall is beginning.
See the contents of the log file for the c:\documents and
settings\louis\my docu
ments\visual studio
projects\alertprocessor\alertprocessor\bin\alertpr ocessor.ex
e assembly's progress.
The file is located at c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.InstallLog.
Uninstalling assembly 'c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.exe'.
Affected parameters are:
assemblypath = c:\documents and settings\louis\my documents\visual
studio pro
jects\alertprocessor\alertprocessor\bin\alertproce ssor.exe
logfile = c:\documents and settings\louis\my documents\visual studio
projects
\alertprocessor\alertprocessor\bin\alertprocessor. InstallLog
Removing EventLog source AlertProcessor.
Warning: The source AlertProcessor is not registered on the local machine.
Service AlertProcessor is being removed from the system...
An exception occurred during the uninstallation of the
System.ServiceProcess.Ser
viceInstaller installer.
System.ComponentModel.Win32Exception: The specified service does not exist
as an
installed service
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

C:\Documents and Settings\Louis\My Documents\Visual Studio
Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The uninstall is beginning.
See the contents of the log file for the c:\documents and
settings\louis\my docu
ments\visual studio
projects\alertprocessor\alertprocessor\bin\alertpr ocessor.ex
e assembly's progress.
The file is located at c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.InstallLog.
Uninstalling assembly 'c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.exe'.
Affected parameters are:
assemblypath = c:\documents and settings\louis\my documents\visual
studio pro
jects\alertprocessor\alertprocessor\bin\alertproce ssor.exe
logfile = c:\documents and settings\louis\my documents\visual studio
projects
\alertprocessor\alertprocessor\bin\alertprocessor. InstallLog
Removing EventLog source AlertProcessor.
Warning: The source AlertProcessor is not registered on the local machine.
Service AlertProcessor is being removed from the system...
An exception occurred during the uninstallation of the
System.ServiceProcess.Ser
viceInstaller installer.
System.ComponentModel.Win32Exception: The specified service does not exist
as an
installed service
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

C:\Documents and Settings\Louis\My Documents\Visual Studio
Projects\AlertProcess
or\AlertProcessor\bin>

"Larry Bird" wrote:
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 debug. I
have not been able to get the service running because of errors within my
code. I know that I can debug a windows service however, you must first
get things running to debug and I'm not at that point yet. For now I
just want to un-install it and debug.

Thanks

Nov 20 '05 #3
I have made sure that the service is stopped first. I continue to get the same error. Any help is greatly appreicated.

Thanks

"Greg Burns" wrote:
The last time I had trouble uninstalling a service I wrote I had forgot to
stop it first...?

Greg

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Please see error message below:

C:\Documents and Settings\Louis\My Documents\Visual Studio
Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The uninstall is beginning.
See the contents of the log file for the c:\documents and
settings\louis\my docu
ments\visual studio
projects\alertprocessor\alertprocessor\bin\alertpr ocessor.ex
e assembly's progress.
The file is located at c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.InstallLog.
Uninstalling assembly 'c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.exe'.
Affected parameters are:
assemblypath = c:\documents and settings\louis\my documents\visual
studio pro
jects\alertprocessor\alertprocessor\bin\alertproce ssor.exe
logfile = c:\documents and settings\louis\my documents\visual studio
projects
\alertprocessor\alertprocessor\bin\alertprocessor. InstallLog
Removing EventLog source AlertProcessor.
Warning: The source AlertProcessor is not registered on the local machine.
Service AlertProcessor is being removed from the system...
An exception occurred during the uninstallation of the
System.ServiceProcess.Ser
viceInstaller installer.
System.ComponentModel.Win32Exception: The specified service does not exist
as an
installed service
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

C:\Documents and Settings\Louis\My Documents\Visual Studio
Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The uninstall is beginning.
See the contents of the log file for the c:\documents and
settings\louis\my docu
ments\visual studio
projects\alertprocessor\alertprocessor\bin\alertpr ocessor.ex
e assembly's progress.
The file is located at c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.InstallLog.
Uninstalling assembly 'c:\documents and settings\louis\my documents\visual
studi
o projects\alertprocessor\alertprocessor\bin\alertpr ocessor.exe'.
Affected parameters are:
assemblypath = c:\documents and settings\louis\my documents\visual
studio pro
jects\alertprocessor\alertprocessor\bin\alertproce ssor.exe
logfile = c:\documents and settings\louis\my documents\visual studio
projects
\alertprocessor\alertprocessor\bin\alertprocessor. InstallLog
Removing EventLog source AlertProcessor.
Warning: The source AlertProcessor is not registered on the local machine.
Service AlertProcessor is being removed from the system...
An exception occurred during the uninstallation of the
System.ServiceProcess.Ser
viceInstaller installer.
System.ComponentModel.Win32Exception: The specified service does not exist
as an
installed service
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored
and the
uninstall will continue. However, the application might not be fully
uninstalle
d after the uninstall is complete.

C:\Documents and Settings\Louis\My Documents\Visual Studio
Projects\AlertProcess
or\AlertProcessor\bin>

"Larry Bird" wrote:
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 debug. I
have not been able to get the service running because of errors within my
code. I know that I can debug a windows service however, you must first
get things running to debug and I'm not at that point yet. For now I
just want to un-install it and debug.

Thanks


Nov 20 '05 #4
This is a (very) long shot, but once I had compiled and installed a service
with NET 1.0. Upgraded source code to NET 1.1 and tried to uninstall to
reinstall new version. Wouldn't do it. Solution was to installutil from
prior framework folder. I told you it was a long shot. :^)

Greg

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
I have made sure that the service is stopped first. I continue to get the
same error. Any help is greatly appreicated.

Thanks

Nov 20 '05 #5
Insure that the service will start (again). Assuming that the service
starts, then check the location that the service starts from. I have
seen this happen when I installed from one location and attempted to
stop from an another. I have also seen this when I changed the assembly
(in a different directory of course), stopped the service, copied the
changed (and now non-functional for any reason) assembly over the one
that the service is pointed to. In that case, I had to write a stub
service (with the same assembly name) that I could run and stop. This
allowed me to un-install the service.

HTH

David

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:#e*************@tk2msftngp13.phx.gbl:
This is a (very) long shot, but once I had compiled and installed a
service
with NET 1.0. Upgraded source code to NET 1.1 and tried to uninstall to

reinstall new version. Wouldn't do it. Solution was to installutil from

prior framework folder. I told you it was a long shot. :^)

Greg

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
I have made sure that the service is stopped first. I continue to get
the
same error. Any help is greatly appreicated.

Thanks


Nov 20 '05 #6
On Mon, 5 Jul 2004 14:12:01 -0700, Larry Bird wrote:
C:\Documents and Settings\Louis\My Documents\Visual Studio Projects\AlertProcess
or\AlertProcessor\bin>installutil /u AlertProcessor.exe System.ComponentModel.Win32Exception: The specified service does not exist as an
installed service


I notice that you have added '.exe' to the end of the service name. Have
you tried by just using the service name and not the name of the executable
file? i.e. have you tried:

installutil /u AlertProcessor

Without the '.exe' on the end.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 20 '05 #7
I hade made a batch file to install and uninstall my service for when I was
testing. It had the exe extension and always worked for me...

"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\instal lUtil.exe" /u
"C:\MyService\bin\MyService.exe"

Greg
I notice that you have added '.exe' to the end of the service name. Have
you tried by just using the service name and not the name of the
executable
file? i.e. have you tried:

installutil /u AlertProcessor

Without the '.exe' on the end.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Wayne | last post: by
4 posts views Thread by Nathan Kovac | last post: by
1 post views Thread by SStory | 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
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.