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.

Note instead of running an application as a service, then one can also consider using a scheduled task to start the application when computer starts or when a user performs logon. See Task Scheduler.

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

Updated: 26 March 2009

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

Comment by Rukmal - 15 December 2009 @ 10:32 Reply

w.-g.esder

Thanks you very much !!

Comment by Xantes - 29 May 2010 @ 13:22 Reply

“runassvc” works flawlessly in Win 7! Tested an currently running in Win 7! Very much appreciated the posted link! And since at that time it was made for Win XP I am very sure that works for XP, as well(though didn’t test it in XP)!

Comment by Nick - 12 June 2010 @ 19:26 Reply

This tiny app allows to solve one knotty problem with Win7. It starts PPPoE connection before login when you have to keep access to remote PC after its rebooting!

Comment by CoreTech - 28 July 2010 @ 17:06 Reply

You can also use AlwaysUp to run your application as a service.

Please see this detailed comparison of Srvany and AlwaysUp for details.

Leave a comment


NB! Use the Forum for computer help and off-topic questions.

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