Install an application as a Windows service

10 January 2003 by Snakefoot | Comment » | Trackback Off
Srvany.exe (Download mirror) allows one to install a standard application as service. The Srvany acts as a wrapper around the program and handles the service events, so when starting the service it will run the application. One uses the Instsrv.exe to register the Srvany with a service name, and then uses the registry to attach the application which should be started through Srvany.

Instsrv.exe MyService C:\Srvany.exe

[HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Services \MyService \Parameters]
Application = "C:\MyApp.exe"

Note one can control the new service from the command line using SC.EXE or NET.EXE.

Note FireDaemon is similar to Srvany with more bells and whistles, but it costs money.

More Info MS KB Q137890
More Info MS KB Q166819
More Info MS KB Q251192

Updated: 3 September 2007

Comments:

Comment by w.-g.esders - 9 March 2008 @ 23:45 Reply

just look here. it´s in german and great and free

http://www.pirmasoft.de/runassvc.php

Comment by w.-g.esders - 10 March 2008 @ 0:30 Reply

and in english

http://www.pirmasoft.com/runassvc.php

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>