Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void InitializeComponent()
- {
- this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
- this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
- //
- // serviceProcessInstaller1
- //
- this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.User;
- this.serviceProcessInstaller1.Password = "lkat@*123";
- this.serviceProcessInstaller1.Username = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
- //
- // serviceInstaller1
- //
- this.serviceInstaller1.ServiceName = "TAMS.WindowService";
- this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
- //
- // ProjectInstaller
- //
- this.Installers.AddRange(new System.Configuration.Install.Installer[] {
- this.serviceProcessInstaller1,
- this.serviceInstaller1});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement