Windows Service – Not installing .Net 4 VS2010  - Where is it? ;-)

This is only relevant if your service installs perfect but you can find it – Where is it? It should be identifiable in the services.msc but its not there??

InstallUtil doesn’t complain during install so whats the problem.. ??

Simple & obvious when you know why – in VS2010 when you add your serviceInstaller and your serviceProcessInstaller the parent property doesn’t get set automatically like in previous versions of VS.

To Fix:

Goto your ServiceInstaller and set the Parent property from none to your ProjectInstaller

OR IN THE CASE WHERE YOU HAVE RENAMED THE PROJECTINSTALLER CHANGE THE SETTIGN THERE!

Should work like a gem ;-)

Keith