How to make a program run like a service in Windows Server Family
Did you have that cool program that only runs in interactive mode?
Are you needing to put some files working in the “service” mode?
So this the is the real juice.
To make a program run like a service you need two things:
- SrvInstW: this program is located on Resource Kit from Microsoft
- SrvAny : another tool from microsoft
The srvany is like an interface between your application and the windows systems, in fact you use the SrvInstW to run the srvany, and you put your program to run by parameter.
This works in this way:
Srvany -> runs srvany –> runs your program in service mode.
Ok, enough of theory here is the real thing:
First run the SrvInstW
and follow these steps
2. Next , choose local machine
3. Next, enter the name of the new service
4. Next, choose the appilcation !! use srvany.exe !!
6. Use the System account or enter the logon user,
7. Choose the automatic and Finish!
Ok, Now you are thinking:
“I am done with the srvany.exe and what about MY APPLICATION????”
Now polish your skills in regedit and do this:
Use Regedit:
go to HLK\Local Machine\System\CurrentControlSet\Service\Your service name
Make another key: Parameteres
Make a new string sz called Application
Put the full path of your application on this string like this picture
And it is done….
If you have more questions on anything related to this, please enter in our forum, we are friendly and don’t bite






January 7th, 2007 at 12:55 pm
Super
Thanks