Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / May 2007

Tip: Looking for answers? Try searching our database.

How to install service in Vista

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joachim - 07 May 2007 13:36 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 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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.