I dislike VDPROJ because it exposes so little of Windows Installer and encourages anti patterns at worst or extensive post-build manipulation of the MSM/MSI package at best.
However I realize that you might already be committed to VDPROJ so I thought I would point out that Phil Wilson ( Windows Installer MVP ) posted a sample C# solution that is a command

Frankly, I still dislike VDPROJ. However, if your going to use it, this sure beats using an Installer class custom action to register the service. Better would be if Visual Studio would just dump VDPROJ and replace it with a full blown WiX IDE WixAware maybe?