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

cclickoncewindows-serviceswpf

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)?

Best Answer