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?
C# – Prompting username password while installing the windows service in c#
cwindows-services
Related Topic
- C# – Install a .NET windows service without InstallUtil.exe
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- C# – Error in installing Windows service developed in .NET
- C# – Credentials when Installing Windows Service
- C# – reason for C#’s reuse of the variable in a foreach
- “Automatic” vs “Automatic (Delayed start)”
- How to solve “The specified service has been marked for deletion” error
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
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 onServiceProcessInstaller -> Properties
; setAccount
asLocal Service
.Now use the
installutil
command. It will not ask for Username/Password.