Installing or deploying windows service
In two ways we can deploy windows service
- By using sc.exe in windows command prompt
- By using installutil in visual studio command prompt
It is suggested to use installutil in visual studio command prompt, so that it will display all the install instructions given in project installer class. If we use sc.exe in command prompt it will not consider the install instructions like service display name, description, start up mode, ....