Windows Service Setup Project – Visual Studio 2008
Windows Service Setup Project differs a bit from Windows Application (Desktop) Setup Project. Consider those following steps to create Setup Project for Windows Service Application.
# Right Click on Solution and Add New Project to your Solution.
# Choose Other Project Type and Setup and Deployment and finally Setup Project to create a new Project, give it meaningful Name. For instance, My Windows Service Project name is ReportDownloader and my Setup Project Name is SetupReportDownloader.
# Right Click on SetupReportDownloader=> Add => Project Output, Finally Select the Project you want to create Setup Project for and Select Primary Out and Click OK to continue.
# Up to this, it is same as Windows Application. Now for Windows Service, Right Click on SetupReportDownloader=>View=>Custom Action.
# In the Left Pane, Right Click on Install=> Add Custom Action=> Application Folder=> Project Output and Click OK to continue.
# Do the same for Commit, Rollback, Uninstall.
# Build the Original Project First, build This Setup Project then.
Now your Setup Installer is ready Setup Project Bin Folder.
A Rahim Khan