How to set the windows service logon properties.
Hi Friends,
I need to set the logon properties of windows services through coding. I m using the following code :
Me.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalService
Me.serviceProcessInstaller1.Password = "password"
Me.serviceProcessInstaller1.Username = "username"
Service is building perfectly but it shows installation failed at the time of installation.
I also want to set the recovery tab options for the service by coding
Please friends let me know the answer asap.....
|