automatic start of windows service after installation?

  • Thread starter Thread starter RK
  • Start date Start date
R

RK

Hi

Is there any way can we start the windows service after installation
without the need for starting the service manually. I have StartType
property set to "Automatic" for the service, but that helps only when
we restart the machine. I want the service to kick in, right after
installation without starting the service manually.

Any help is greatly appreciated..
thanks in advance.
--RK
 
RK,

In your installer project, find the class that derives from Installer.
Set an event up that handles the AfterInstall event on the Installer class
(pointing to yourself, if you want). In that event, fire up the service
that you installed.

Hope this helps.
 
Back
Top