I'm trying to make an updater service, which will be updating another c#-written service on computer.
So I need to stop_service > uninstall_service > replace_exe > install_service > start_service in my code. Apparently I care about install_service/uninstall_service part.
I've read the tutorial about service app which is using installutil.exe to do stuff, but it feels kinda lame to call dotNet external app to do quite basic dotNet stuff.
So, how can I install/uninstall service utilizing .NET classes instead of external app?