BestPractice Install/Update Topshelf-Service from InnoSetup

1,270 views
Skip to first unread message

Stefan Rinkes

unread,
Oct 30, 2012, 1:36:21 PM10/30/12
to topshelf...@googlegroups.com
Hi,

I just wanted to ask if somebody has already created a Topshelf project with an InnoSetup-Installer.
I'm interested how to add the install/update of the topshelf-service in a InnoSetup configfile.

Goal is to have a setup.exe and in the end the service is installed/updated and running.

Stefan

Chris Patterson

unread,
Oct 30, 2012, 2:04:09 PM10/30/12
to topshelf...@googlegroups.com
Use the Topshelf command-line and call it as an external once the
files are in the proper folders. There are command line options for
pretty much everything any service installed would need.

Stefan Rinkes

unread,
Oct 30, 2012, 2:48:31 PM10/30/12
to topshelf...@googlegroups.com

Currently I have following lines in my InnoSetup file:

[Run]
Filename: "{app}\service.exe"; Parameters: "uninstall"
Filename: "{app}\service.exe"; Parameters: "install start"

[UninstallRun]
Filename: "{app}\service.exe"; Parameters: "stop"
Filename: "{app}\service.exe"; Parameters: "uninstall"
Reply all
Reply to author
Forward
0 new messages