• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

windows service did not get installed

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
-Dman100-
Asked:
-Dman100-
  • 2
  • 2
1 Solution
 
dherringCommented:
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
 
-Dman100-Software ConsultantAuthor Commented:
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
 
-Dman100-Software ConsultantAuthor Commented:
well, heck, it didn't let me attach the zip file.
0
 
dherringCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now