Suppose an executable named ConsoleOrService.exe
is written in C#
. It currently is a hybrid. I can just start it on the command line, or I can install it using the .Net's installutil ConsoleOrService.exe
and then start the service. I would like a third option: running it on the command line like so: ConsoleOrService.exe --install
and have it do all of the work.
- Is this possible?
- Is this hard?
- How can I get started?
Thank you, and let me know if there are questions please.