Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C#: Making an Installer that installs both a WPF application (ClickOnce) and a Windows Service

I currently have a VS Solution with 2 projects: a WPF application and a Windows Service.

Now, I have managed to get ClickOnce working in installing my WPF application, but I also want a Windows Service to be installed (the one in the project) during this installation.

I have found ways how to programmatically start a windows service with C# code, but is there any way to incorporate this in my ClickOnce installation (because I need ClickOnce's benefit of automatic updates and such)?

like image 284
Andreas Grech Avatar asked Mar 01 '23 19:03

Andreas Grech


2 Answers

I don't think you can deploy a windows service via ClickOnce in a normal fashion.

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/1bb64760-9622-4ca6-a1a6-3ce53e641f21

ClickOnce deploy a Windows Service?

like image 182
Jonathan Rupp Avatar answered Mar 04 '23 09:03

Jonathan Rupp


Please check DDay Update library it might give you ClickOnce stuff for updates, but first install you've got to do using another too.

like image 23
Roman Motyka Avatar answered Mar 04 '23 09:03

Roman Motyka