Vesuvian
Vesuvian

Reputation: 717

How can I start my Topshelf service after installation?

I have a Topshelf service that is working great. It installs with Automatic startup and I can start/stop the service just fine. My problem is that the service requires a user to start it initially.

Is there a standard way of starting the service immediately after installation?

Upvotes: 1

Views: 2537

Answers (1)

Matt Davis
Matt Davis

Reputation: 46044

Minimally, run the service from the command line with the start verb after it has been installed, e.g.,

.\MyService.exe start

Note that you'll probably want to do this from a command prompt running in administrative mode, which is consistent with how you typically install software on Windows systems. For more discussion, see the answer here.

Refer to the command line documentation here for other helpful commands.

Upvotes: 1

Related Questions