Is it possible to create a daemon project that accepts the name it should have in the Windows services window at the time of its installation as a parameter and that starts without error?
I can create a daemon project that is installed with "-i" but the name is fixed in the code. It works when I click "start", "stop" and is removable with "-u" without problems.
But using "sc" to install, I can get the name I want at the time of installation, but it doesn't "start" (error 1053).
Does anyone have a minimal example project that allows this?
fruits.exe -> "Banana Service" running
fruits.exe -> "Apple Service" running
fruits.exe -> "Orange Service" running
Maybe:
fruits.exe -i "Banana Service"
fruits.exe -i "Apple Service"
fruits.exe -i "Orange Service"
?