![]() ServiceInstaller.AfterInstall += ServiceInstaller_AfterInstall ServiceInstaller.ServiceName = "Windows Automatic Start Service" ServiceInstaller.StartType = ServiceStartMode.Automatic ![]() Service will have Automatic Start Type ProcessInstaller.Account = ServiceAccount.LocalSystem ProcessInstaller = new ServiceProcessInstaller() Private readonly ServiceProcessInstaller processInstaller Public partial class ServiceInstaller : Installer After refactoring a little bit, this is an example of a complete windows service installer with automatic start: using System.ComponentModel
0 Comments
Leave a Reply. |