?
Solved

windows service did not get installed

Posted on 2008-11-07
4
Medium Priority
?
276 Views
Last Modified: 2013-11-26
I have created a very simple windows service that I'm trying to test.  This is the first windows service I have created, so I'm sure I've missed a step.

I built the service and setup projects without errors.  Everything was successful.

However, after I created the setup/deployment project and tried to install the service, the msi installer created the directory /Program Files/company name/program name/ and all the files were listed in the directory, but the service does not show up in the services control panel list.  It never got installed as a service.

What am I missing?

Please let me know if I need to attach any code to help spot my error?

I'm running Visual Studio 2005.

Thanks for any help.
0
Comment
Question by:-Dman100-
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
dherring earned 2000 total points
ID: 22909115
This is a complicated topic.  Please go to the following link, download the SvcInstall.zip file and review the document in this archive called "Installing Services.doc":

http://www.installsite.org/pages/en/msi/tips.htm

There are some good examples (C#) included that might help you.
0
 

Author Comment

by:-Dman100-
ID: 22910231
Hi dherring,

Thanks for replying to my post.  I have downloaded the svcinstall.zip file and read the document, but I'm still a little lost.

I thought it might help you saw the solution code.  I've attached the in a zip file the entire solution, which it is a very small program.

Perhaps you can see where I might have gone wrong in the code.

Thanks again.

0
 

Author Comment

by:-Dman100-
ID: 22910238
well, heck, it didn't let me attach the zip file.
0
 
LVL 3

Expert Comment

by:dherring
ID: 22914888
Sorry you had trouble with the zip file, Dman.  Sounds like you figured it out.  If you get a chance, post a brief summary of what you ended up doing to solve the problem, especially if it was something simple, for others that may find and use this thread.  You could try the Attach Code Snippet feature, to see if that works better than the zip file attach.  I'm glad Phil Wilson's article was helpful to you.  He did a really nice job laying out the ins and outs of installing Services.

-Dave
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
If you don't know how to downgrade, my instructions below should be helpful.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question