add a program as a service

  • Thread starter Thread starter Gary L. Richmond
  • Start date Start date
Mark V said:
SRVANY.EXE from the Resource Kit is one solution perhaps.

Actually, SRVANY does not install services - it just acts as a broker
between the Service Control Manager and another EXE file to allow you to
set up your own user-defined services. It allows EXEs that have not been
written to supply the proper return codes for SCM to run successfully as
services. You set up a service to run using SRVANY, then SRVANY calls
your EXE (similar to SVCHOST.EXE).

You still need to have another utility to install SRVANY (or anything)
as a service. AFAIK, W2K does not come with a utility to do this. For
XP, you can use SC.EXE. You can probably Google for a VBScript that will
do the same thing.

ws
 
You can use SC.EXE w/ the create option to add a service. It is in the
reskit I believe.

IBTerry [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
 
In said:
Actually, SRVANY does not install services - it just acts as a
broker between the Service Control Manager and another EXE file to
allow you to set up your own user-defined services. It allows EXEs
that have not been written to supply the proper return codes for
SCM to run successfully as services. You set up a service to run
using SRVANY, then SRVANY calls your EXE (similar to SVCHOST.EXE).

You still need to have another utility to install SRVANY (or
anything) as a service. AFAIK, W2K does not come with a utility to
do this. For XP, you can use SC.EXE. You can probably Google for a
VBScript that will do the same thing.

I may have read the OP differently...wasn't much to go on. <G>

Good to know that XP SC can (but am on W2K still. And for some while
most likely).
 
If the program was written to be run as a service you can usually run the exe with /install or -install and that will
install it. If the program wasn't written to be run as a service you can TRY to use SRVANY to make it try to work LIKE a
service. There is nothing that is guaranteed to make an application not written to be a service to act like one; just
things that try to get close.

joe
 
Back
Top