Wednesday, June 30, 2004

317421 - HOW TO: Create a Setup Project for a Windows Service in Visual Basic .NET

317421 - HOW TO: Create a Setup Project for a Windows Service in Visual Basic .NET
To tell the deployment project what it should package, follow these steps:
In Solution Explorer, right-click ServiceSetup, point to Add, and then click Project Output.
In the Add Project Output Group dialog box, in the Project box, click LogWriterService.
Click Primary Output, and then click OK.
For proper installation, you are only required to add primary output. To add the custom actions, follow these steps:
In Solution Explorer, right-click ServiceSetup, point to View, and then click Custom Actions.
Right-click Custom Actions, and then click Add Custom Action.
Click Application Folder, and then click OK.
Click Primary output from LogWriterService (Active), and then click OK. Notice that Primary output appears under Install, Commit, Rollback and Uninstall.
Setup projects are not included in the build configuration by default. To build the solution, follow these steps:
Right-click LogWriterService, and then click Build. Subsequently, right-click ServiceSetup, and then click Build.

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?