how to add a service? 500 pts!

Posted on 2005-04-25
Medium Priority
Last Modified: 2010-04-18
hi there - can anyone give me a link or description of how to add a .exe as a windows service? - many thanks....
Question by:pjordanna
LVL 25

Expert Comment

ID: 13861683
.exe is a program (ie runs at the client level)
a service is something different alltogether.  If a computer has a running "service" then it is effectively a "server" since it is listening for a client to access that service.  IE a listening  daemon to use unix terms.

Programs are run by users, services are usually set to run at startup (IE nobody has to be logged on for them to run)

That being said, what exacly are you trying to accomplish???  what is your ultimate goad???
LVL 25

Expert Comment

ID: 13861702
goad=goal in the above post,,, sorry for the typo
LVL 11

Accepted Solution

KaliKoder earned 1200 total points
ID: 13861707
Hi Pjordanna-

You can use srvany.exe  utility from NT resource kit to do that. Have a look at the following, although it only mentions NT, I believe it would work for 2000/XP/2003 as well.

How To Create a User-Defined Service:

Thanks and Good Luck!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 11

Expert Comment

ID: 13861755

There are numerous shareware utilities that would let you do that. I havent tried any other than one from NT resource kit. But, is one for example, they are shareware:




Expert Comment

ID: 13861970
KaliKoder's tip and link to MS article is what you need.

You will use the "instsvr.exe" to install (and remove) the service, that is, to create the registry entries needed for the service.

To control (start/stop) the service you will use (althouhg you'll not see it) the "srvany.exe" that starts/stops the actual .exe which this way is being run as a windows service.

Follow the instructions on Microsoft's article and that's it, i've done that dozens of times and worked every time (if I just remebered to modify the registry manually _as_mentioned_on_the_article_ ... ;-)

Cheers and points go to KaliKoder!
LVL 85

Assisted Solution

oBdA earned 800 total points
ID: 13864836
Actually, instsrv.exe and srvany.exe for Server 2003 are here:
Windows Server 2003 Resource Kit Tools

Author Comment

ID: 13865494
thanks guys great and comprehensive answer

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

839 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