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:

  1. SrvInstW: this program is located on Resource Kit from Microsoft
  2. 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

  1. OPen the InsSrvW Opening

2. Next , choose local machine Opening

3. Next, enter the name of the new serviceName of The Service

4. Next, choose the appilcation !! use srvany.exe !!Choose srvany.exe

5. Next, SrvinstW-5.JPG

6. Use the System account or enter the logon user,System Account
7. Choose the automatic and Finish!Automatic

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

Regedit

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 :)