how to add a service? 500 pts!

Posted on 2005-04-25
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

    .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

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

    Accepted Solution

    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!
    LVL 11

    Expert Comment


    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:

    LVL 4

    Expert Comment

    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 82

    Assisted Solution

    Actually, instsrv.exe and srvany.exe for Server 2003 are here:
    Windows Server 2003 Resource Kit Tools

    Author Comment

    thanks guys great and comprehensive answer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now