Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Create a Windows Service

0 views
Skip to first unread message

Torgeir Bakken (MVP)

unread,
Oct 15, 2002, 9:03:30 AM10/15/02
to
Swlad wrote:

> Hello,
>
> I have a server that runs as a regular application (in a
> console). "C:\Program File\MyProg\myprog.exe"
>
> I would like to start this as a service, just like the
> World Wide Publishing Service (w3svc).
>
> How do I register it to work as explained?

Hi

You can use instsrv.exe and srvany.exe from one of the MS Resource Kits.

If you don't have access to theNT 4.0/Win2k resource kit, you can download the
NT
3.5 Resource kit, that is free and complete, from here:
ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt35/i386/I386.exe

Expand the files

instsrv.ex_, srvany.ex_ and srvany.wr_
to
instsrv.exe, srvany.exe and srvany.wri

and you are in business. See srvany.wri for instructions. I successfully created

a service of notepad.exe in WinXP with those files :)


A couple of notes:

Running I386.exe itself will not work (nothing happens). Use e.g. WinZip to
extract the files in I386.exe. Then use expand.exe to expand the compressed
files, like this:

expand instsrv.ex_ instsrv.exe


--
torgeir
Microsoft MVP Scripting and WMI
Porsgrunn Norway


0 new messages