Search code examples
windows-servicessetup-projectinstallutil

What is the best way to install a C# windows service that doesn't require running installutil manually?


I'd like to package a C# windows service project so it can be easily installed by anyone without having to use installutil command prompt utility? Is there an easy way to configure a Visual Studio setup project to do that similar to how winforms applications are installed?


Solution

  • I like to create a install project to get a nice and clean MSI installer, this should help you:

    http://support.microsoft.com/kb/816169

    And codeproject has a good example too: http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx