How to install service in Vista

G

Guest

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?
 
H

Hans Kesting

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?

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
 
M

Michael Nemtsev

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>
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top