I have made a Windows Service and I have read that you should use
installutil.exe to register the service. However, no service appears in the
Control Panel > Administrative Tools > Services when I run installutil. How
can I install my service?
I get one message when using installutil that I don't know if it is an error
message or not:
"No public installers with the RunInstallerAttribute.Yes attribute could be
found in the C:\... assembly.
Remove InstallState file because there are no installers."
What does that mean?
Hans Kesting - 07 May 2007 14:51 GMT
> I have made a Windows Service and I have read that you should use
> installutil.exe to register the service. However, no service appears
[quoted text clipped - 9 lines]
> Remove InstallState file because there are no installers."
> What does that mean?
It means that it could find code that should do the installing.
See also here (might wrap):
http://msdn2.microsoft.com/en-us/library/system.configuration.install.installer(
VS.80).aspx
Hans Kesting
Michael Nemtsev - 07 May 2007 15:40 GMT
Hello Joachim,
Check that u use installutil.exe from the latest installed FW folder "WINDOWS\Microsoft.NET\Framework\v2.0.50727\"
and not the 1.1
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
J> I have made a Windows Service and I have read that you should use
J> installutil.exe to register the service. However, no service appears
J> in the Control Panel > Administrative Tools > Services when I run
J> installutil. How can I install my service?
J>
J> I get one message when using installutil that I don't know if it is
J> an error message or not:
J>
J> "No public installers with the RunInstallerAttribute.Yes attribute
J> could be
J> found in the C:\... assembly.
J> Remove InstallState file because there are no installers."
J> What does that mean?
J>
Peter Bromberg [C# MVP] - 07 May 2007 16:47 GMT
You need to have an Installer class in your service in order for Installutil
to be able to "install it". Look at a sample service for the code you need.
Peter

Signature
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
> I have made a Windows Service and I have read that you should use
> installutil.exe to register the service. However, no service appears in the
[quoted text clipped - 9 lines]
>
> What does that mean?