I plan to write a windows service to initiate all the business processing, and a Windows Forms app to do all its configuration.
Can the windows user under which the service runs be edited in code as part of the configuration?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It can be altered programatically when the service is installed. Have a look at the System.ServiceProcess.ServiceProcessInstaller class. It has properties to set the the account, username and password. You need to make an instance of this class with the correct settings and add it to the Installers collection of your custom (System.Configuration.Install.Installer) installer.