Wednesday, September 21, 2011

Windows Service not showing in list with Setup


Check these symptoms :
1)  InstallUtil YourService.exe installs the service and it shows up properly in the Component Services 
2) A setup project with the Primary Output set to your service project and it does NOT show up in the Services Snap-In.
Solution
Check setup project that it contains these four Custom Actions. Right click the setup project, open the View | Custom Actions. You should see Primary output from YourService under all four of the Custom Actions: Install, Commit, Rollback, and Uninstall.

If those four actions don't have the Primary output..., then add manually those to each of the Custom Actions nodes. In the Custom Action viewer, r-click each of the nodes, click Add Custom Action..., select Look in: Application Folder, then select the Primary output from... your service.

No comments:

Post a Comment