I created a Installer for my Windows service, but it installs it as a 'program' [visible in add remove programs] not as a service. I got through the issue using the installutil, but just wondering how can this be done via a installer?
Just a tip, installutil is located in the Windows folder [WINDOWS\Microsoft.NET\Framework\v2.0....]
thanks
das
You need to add a custom action to your setup project. Right click on setup project, select View Custom Actions. Right click on the Custom Actions node and select Add Custom Action. In the Select Item in Project dialog double click on Application Folder then select 'Primary Output from...' and select OK. The Install, Commit, Rollback and Uninstall nodes should contain 'Primary Output from...'
Now rebuild setup project. After running the setup msi file the service will now be installed.