Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Register Windows Service

Status
Not open for further replies.

Milleniumlegend

IS-IT--Management
Dec 16, 2003
135
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
 
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

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

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.
 
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

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

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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top