How do you automatically start a service after running an install from a Visual Studio Setup Project?
I just figured this one out and thought I would share the answe
Small addition to accepted answer:
You can also fetch the service name like this - avoiding any problems if service name is changed in the future:
protected override void OnCommitted(System.Collections.IDictionary savedState)
{
new ServiceController(serviceInstaller1.ServiceName).Start();
}
(Every Installer has a ServiceProcessInstaller and a ServiceInstaller. Here the ServiceInstaller is called serviceInstaller1.)