Learn how to make any .exe file run as a windows service. These instructions will guide you to install, register and run an exe as a service in windows 7, windows-xp, server 2003 and 2008 plus vista. You can convert almost any .exe file into a windows service using the steps below. but remember, some files may need command parameters to work properly.
You must be logged in as an administrator on your computer with admin privileges. Then make sure both files are stored in a directory.
Make sure to place SRVANY.EXE in a location where you can hold it because you will have to keep it there for the service to run.
a): Go to MS-DOS command prompt, navigate to the location / directory where you saved the both files.
b): Type this command: INSTSRV [service name] SRVANY.EXE
Here the [service name] is the name of the your service which you are setting up. You can give any name to your service but something descriptive.
c): To remove your service:
INSTSRV [service name] REMOVE
Here [service name] is the name of your service you wish to unregister.
d): Go to Start Menu, open RUN, here you type REGEDIT and hit enter, you,ll see Registry Editor.
Go to this location to find the service key:
-in the Edit menu, click New, select Key, and name the new key Parameters
-Highlight the Parameters key
-in the Edit menu, select New , String Value, and name the new value Application
-in the Edit menu, select Modify, and type the full path with the application name, including the drive letter and file extension
*C:\Program Files\Network Monitor\netmon.exe*
Now close the windows registry editor tools.
You are done, now you can run your service from services.msc.