How do I install a Windows Service programmatically without using installutil.exe?
I install and uninstall my Windows Service via the command line, e.g., MyWindowsService.exe -install and MyWindowsService.exe -uninstall, to avoid using installutil.exe myself. I've written a set of instructions for how to do this here.
MyWindowsService.exe -install
MyWindowsService.exe -uninstall
installutil.exe