Installing Services
Although you can easily create batch files to install a service, at times you might want to carry out more sophisticated actions than a batch file allows.
Microsoft Visual Studio 2008 provides you with the ability to create a setup project by either using the setup project template or by using the setup project wizard. I’ll use the code from Chapter 1, to demonstrate how to create a setup project for a service, build it, and then deploy the service to the local computer.
Adding the Setup Project
The first thing we need to do is create the setup project. Open your tutorials Chapter 1 solution. Right-click the solution, choose Add, and then select New Project. From the Project Template dialog box, expand Other Project Types, select ...
Get Programming Windows® Services with Microsoft® Visual Basic® 2008 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.