Reputation: 19163
I am using MSBuild task to install a windows service. Everything works fine but the newly installed service runs under local system account. Is there anyway to tell MSBuild to install the service under the same account as TeamCity (TeamCity is running under a special service account). I am runing the build file using TeamCity. I dont want to explicitly specify the user name and password as it is too risky to store this information in plain text.
Thank you.
Upvotes: 0
Views: 108
Reputation: 1715
It does not seem possible. However, I'd suggest to use Build Parameters instead, they're designed for it. Read more about it here: http://confluence.jetbrains.com/display/TCD6/Defining+and+Using+Build+Parameters+in+Build+Configuration
You'll be able to specify user/password in TeamCity UI (even on every build, if needed)
Upvotes: 2