Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Register Windows Service

Register Windows Service

Register Windows Service

Could you please let me know how to register an windows Service on Server. I have a .exe application and would like to install that application as an exe.

What command do I use to register that exe as a windows service.

Many Thanks in advance

RE: Register Windows Service

Sadly, there is a little more to services than registering them...

Is this a program you have written yourself?  If so, you will need to add the service infrastructure.  We will be able to help more if we had some idea of what language you are using.

If this is an executable not written by you, maybe you shoudl contact the supplier and ask them if it is possible.

Finally, you may find a "wrapper" that will encapsulate the executable in a service type framework.  MS did one called srvany (I think) but it isn't supported by MS (and never was).  Likewise there may be a commercial product that will do the same

Take Care

If at first you don't succeed, skydiving is not for you.

RE: Register Windows Service


Thanks for your thoughts. My problem is that we have an executable written in C++ and it is running on one of the servers at the moment. The team that implemented the services are not in existence. All I have at the moment is this executable and not much documentation on it. But I have the server where it is running at the moment and if the existing implementation helps then we could try to dig some info.

What I am looking for is how to register this exe to the Service Control Manager so that it comes up everytime we bring the system up.

any pointers would be great.

RE: Register Windows Service


 it is running on one of the servers at the moment

Is it running as a service now?

If so, try a commandline parameter like

<executable name> -service

If you get the correct one, it'll register as a service and stop executing, if not you will need to kill the process from task manager

Take Care

If at first you don't succeed, skydiving is not for you.

RE: Register Windows Service


Yes it is running as a service right now but I would like to get this service installed on a new server.

The problem is that I dont know how that was installed on the server where the service is running currently.

I would like to replicate the service installation on the new server and would like to know what to look for and which files to be copied so that the service can be installed on the new box.

Please let me know.

Many thanks in advance.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close