Reputation: 108050
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)?
Upvotes: 4
Views: 2086
Reputation: 7090
Can you execute a process during the ClickOnce install? You might be able to write the service using Topshelf and then execute MyService.exe /install from ClickOnce.
Upvotes: 0
Reputation: 649
Please check DDay Update library it might give you ClickOnce stuff for updates, but first install you've got to do using another too.
Upvotes: 2
Reputation: 15782
I don't think you can deploy a windows service via ClickOnce in a normal fashion.
ClickOnce deploy a Windows Service?
Upvotes: 6