Search code examples
.netvb.netservicewindows-servicesinstallutil

How to install a .NET windows service without InstallUtil.exe vb.net


I have created a windows service in vb.net. Is there anyway i can create an installation for it that does not require installutil to be used?


Solution

  • Installutil is necessary, but to make things easier, you can create a Setup project, so that you simply run an .msi to install the service. (This uses installutil under the hood, but it greatly simplifies installation.)

    One walkthrough is here: http://support.microsoft.com/kb/816169

    And another is here: http://msdn.microsoft.com/en-us/library/zt39148a(VS.80).aspx

    The main difference between the two is the amount of code in the samples. They both walk you throuigh the same process.

    The articles linked to are old, but still apply in VS2010. I used the second article to walk through the process for a VS2010 service just last week.