How to turn an executable-file into a service in Windows 7?

12,726

Solution 1

Perhaps you could look at Servify This

Should do what you;re asking for.

Solution 2

I use three methods:

1.- SC command, just related above.
2.- SrvAny from Windows Resource Kit.
3.- AlwaysUp (not free :-( ). The best until now.

In order to not repeat posts, here are the details:

Share:
12,726

Related videos on Youtube

Hedge
Author by

Hedge

Updated on September 18, 2022

Comments

  • Hedge
    Hedge over 1 year

    I want to use an executable-file (which sports only a command-line interface) as a service in Windows 7.

    I added it to successfully via:

    sc MySVC binPath= "C:\Windows\System32\MyProgram.exe"

    but once I try to start it, it times out with an 1053 error.

    What am I doing wrong?

    • mwfearnley
      mwfearnley about 4 years
      Should this be sc CREATE MySVC binPath=...?
  • Hedge
    Hedge almost 13 years
    That does the trick perfectly <3
  • Hedge
    Hedge almost 13 years
    I found out the problem was that Windows didn't get any response from it (it awaits a special response from services). So I had to wrap it with a tool like Servify This which makes the necessary calls for me.