.NET Windows Service Installer
-
Does anyone know how to actually 'start' a windows service as part of the install (.msi)? I have a windows service and created an installer for it and it installs fine, but it would be really great if the installer could just start the service after installation complete. Thanks.
R.Bischoff
Tengas un buen dia
-
Does anyone know how to actually 'start' a windows service as part of the install (.msi)? I have a windows service and created an installer for it and it installs fine, but it would be really great if the installer could just start the service after installation complete. Thanks.
R.Bischoff
Tengas un buen dia
I haven't done that in quite a long time. IIRC, you had to override the Commit method in your installer class and use the ServiceController class to start the service. Sorry, I don't have an example. It's been about 5 years since I had to do that.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Does anyone know how to actually 'start' a windows service as part of the install (.msi)? I have a windows service and created an installer for it and it installs fine, but it would be really great if the installer could just start the service after installation complete. Thanks.
R.Bischoff
Tengas un buen dia
Sure, require a reboot. :-D
-
I haven't done that in quite a long time. IIRC, you had to override the Commit method in your installer class and use the ServiceController class to start the service. Sorry, I don't have an example. It's been about 5 years since I had to do that.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008That's close to what I thought I had to do, but wasn't sure. I thought I had to do that via 'Custom Action', but I'll try to just add it in the installer first. Thanks.
R.Bischoff
Tengas un buen dia
-
Sure, require a reboot. :-D
Obviously, right :) Well, sometimes people don't want a server being rebooted, so thats not an option.
R.Bischoff
Tengas un buen dia