Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prompting username password while installing the windows service in c#

I am being prompted for user name and password while installing my windows service created in c#. I used the installutil tool to install my service. What is the reason for asking the user name password credentials?

like image 666
Partha Avatar asked Dec 22 '09 10:12

Partha


People also ask

How do I install the same Windows service with a different name?

In case you need the same service running on the same host but with different configuration, logically you would use same code just copy the service folder with different configuration and use installutil to install service with a different name.


2 Answers

If you do not want your windows service to prompt for Username/Password, go to Installer Class(Design Mode) of the service, then right click on ServiceProcessInstaller -> Properties; set Account as Local Service.

Now use the installutil command. It will not ask for Username/Password.

like image 155
Satyendra Kumar Avatar answered Sep 25 '22 02:09

Satyendra Kumar


Right click ServiceProcessInstaller file - > go to properties - > Choose account as LocalService.

enter image description here

like image 24
sathiyamoorthy Avatar answered Sep 26 '22 02:09

sathiyamoorthy