15.7. Create a Windows Service Installer
Problem
You have created a Windows service application and need to install it.
Solution
Add a new class to your Windows service project that extends the System.Configuration.Install.Installer class to create an installer class containing the information necessary to install and configure your service class. Use the Installer tool (Installutil.exe) to perform the installation, which is installed as part of the .NET Framework.
NOTE
You must create the installer class in the same assembly as the service class for the service to install and function correctly.
How It Works
As stated in recipe 15-6, you cannot run service classes directly. The high level of integration with the Windows operating system and ...
Get Visual Basic 2008 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.