jeb

jeb

  • NA
  • 3
  • 0

Why both ServiceProcessInstaller and ­ServiceInstaller Needed?

Sep 5 2005 5:47 AM
It's a mystery to me why you need two installer types for a windows service.  Anyone know?

Here is the text of a Q&A from the C# Cert MELL that suggests that the author may also need some help:

Q:  Why do you need to add instances of both the ServiceProcessInstaller and ServiceInstaller classes to install your service application?

A:  A service application can contain more than one service. The methods of the ServiceProcessInstaller class perform the tasks that are common for all the services within a service application, such as writing entries in the system registry for all the services within the service application. The ServiceInstaller class performs tasks specific to a service, such as creating an entry for a service in the registry of a computer. (emphasis added).

Is this just a typo away from sensible?  Many thanks if you can explain.