For using ServiceInstaller I had to go and add it manually to toolbox, it wasn’t there by default. But there was something by default in toolbox called ServiceController.
So I was wondering if this is better and should be used instead of ServiceInstaller in new versions of .NET?
For using ServiceInstaller I had to go and add it manually to toolbox, it
Share
No, it is not obsolete (see ServiceInstaller Class). ServiceController is exactly what it sounds like a class for programmatically controlling the state of a Windows service (see ServiceController Class). ServiceInstaller doesn’t appear in the toolbox because it is usually added by using Add Installer to create the class in the service project (See How to: Add Installers to Your Service Application).