Prompting username password while installing the windows service in c#

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.

Leave a Comment