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.
-Dman100-Software ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
-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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.