Installing as a service

115 views
Skip to first unread message

Brendan Reynolds

unread,
Aug 13, 2013, 6:15:37 AM8/13/13
to topshelf...@googlegroups.com
Using Visual Studio Express 2012 for Windows Desktop, I've created a console application (called 'ContainerService') using Topshelf (Version 3.1.107.0). The application works as a console application, but I can't seem to figure out how to install it as a service. What I've tried so far ...

1) Publish the application (using Build, Publish ContainerService in Visual Studio).
2) Run a command prompt as Administrator.
3) Navigate to the folder where the application was published and type "Setup.exe -install"

The application is installed and runs, but as a console application, not as a service.

What am I missing?

Travis Smith

unread,
Aug 13, 2013, 7:41:50 AM8/13/13
to topshelf...@googlegroups.com
Run the command 'containerservice.exe install' should install it. You can do 'containerservice.exe start' to start or use the SCM to start it. 

-Travis


--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mikael Syska

unread,
Aug 13, 2013, 7:44:30 AM8/13/13
to topshelf...@googlegroups.com
Hi,

You must have missed the Docs: https://topshelf.readthedocs.org/en/latest/overview/commandline.html

"application.exe install"

There is also lots of other arguments available. 

--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

mvh
Reply all
Reply to author
Forward
0 new messages