Link to home
Start Free TrialLog in
Avatar of capriono
capriono

asked on

how to register windows service?


I have created a windows service using visual C++.

Kindly tell me how do i register its .exe file as windows service.

What command will be used and what steps ll be needed.

reply soon,

Thanks
Avatar of nabehs
nabehs

If you are building the service using ATL COM then to register the service just build the service and it will automatically be registered on the current machine. If you need to register it on another machine then run:
path\service_name.exe /RegServer

and it will be registered.

To start and stop the service you need to go to Control Panel, Administrative Tools, Services and locate the service after installation and start it or stop it.
ASKER CERTIFIED SOLUTION
Avatar of hsdhina
hsdhina

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial