Convert EXE into Windows Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does Microsoft have any utilities that will convert and executable into a
Windows Service? I know there are 3rd party utilities, but I didn't want to
buy one if there was already one available in Win2k.

TIA,
Ken
 
From: "kmkrause2" <[email protected]>

| Does Microsoft have any utilities that will convert and executable into a
| Windows Service? I know there are 3rd party utilities, but I didn't want to
| buy one if there was already one available in Win2k.
|
| TIA,
| Ken

From the NT Resource Kit...

INSTSRV.EXE
SRVANY.EXE

The following is an example of installing the SETI Command Line utility as a service.
The SETI Command Line utility was renamed to; myseti.exe for the following...


@echo off
:
: S@H Client Daemon
: v1.3
:
copy ".\SaH\*.*" %windir% >nul
%windir%\instsrv MySeti %windir%\srvany.exe
regedit /s .\sah_serv.reg
c:
cd %windir%
cmd

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySeti]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySeti\Parameters]
"Application"="c:\\winnt\\MySeti.exe"
"AppDirectory"="c:\\winnt"


To remove a service use the NT Resource Kit utility; delsrv.exe
 
From: "kmkrause2" <[email protected]>

| Does this work under Win2k?

Duh !
That's why I posted the information in a Win2K News Group.

I used the term NT Resource Kit because the three utilities;
INSTSRV.EXE
SRVANY.EXE
DELSRV.EXE

Will work for; NT4, Win2K, WinXP and Win2003 Server which are all "NT" Operating Systems.
 
Back
Top