Reputation: 1
I developed a Windows Service for a client and created an installer with Install Shield. I created and configured the installer class within the service. The problem is that during the installation it asks the credentials. Is it possible to avoid this?
Upvotes: 0
Views: 338
Reputation: 1753
serviceProcessInstaller will be a property of your projectInstaller - you can set the account on this
serviceProcessInstaller.Username = "Username";
serviceProcessInstaller.Password = "Password";
serviceProcessInstaller.Account = ServiceAccount.User;
Upvotes: 1
Reputation: 29
Unfortunately, I don't believe this is possible, but you might be able to do it within the installer. I've played with it before but can't remember if I ever got it working. See Installing service without admin rights
checking here might help: http://www.codeproject.com/Articles/3990/Simple-Windows-Service-Sample
There's a line (after Using the Code, labeled Tip) about setting the Account to LocalSystem, which if my memory serves reminds me of something I may have done to get it to work.
Upvotes: 0