To register the service, first we need to add a Installer to the service. To do this open the service in the GUI mode,right click on the panel and select Add Installer. This will install the project installer file to the project.
Now open the visual studio command prompt and type the following command
installutil myprojectassembly.exe
This will register the windows service.
To check it, open run and type Services.msc. Now you can find your service in the listed services.
No comments:
Post a Comment