I implemented a windows form application and would like to
run it automatically after installing it as a service. (run the exe file as a service).
In my form, it will be two options (Install the service
option and uninstall).
So, my application will be installed as a service, if the
user wants to install that as a service, else the user can run it once there is
a need for that.
Is this possible to achieve by writing a code in my windows
form application project, or it needs to configure a service first by creating
a Windows Service project?