views:

3633

answers:

2

I have built a windows service application in VB.net 2008, and used the Setup Wizard to add an installation process.

The installer works, in that it adds the app to add/remove programs and copies all of the files etc, but it's missing the final (required) step of actually installing the service.

I have added the primary output of the Project as a custom action for Install and Uninstall, without success.

what's the secret?

+7  A: 

You need to create a custom install task; MSDN has everything you need to know

blowdart
+4  A: 

You can do two things:

1) Use custom actions in your setup project to register the service using the "installutil" .Net Framework command line utility, or simply register it yourself using installutil.

2) Add an Installer class to your Windows service. This link should give you all of the information you need, just skip past the beginning parts about creating the service. This is the way I recommend.

AJ