I am trying to install a Windows service using the Microsoft.Sdc.Tasks library.
<ControlService Action="Install" ServiceName="Service1" User="XXX Password="XXX" ServiceExePath="$(DeployFolder)\XXX.exe"/>
But all the time I get a user request and password! . This will not work as I would like to have it as an automatic build on the build server. I mean, the user and password that I want to run are for the actual purpose. How can I install it to install the service using the configured user and password, and not request it?
, , , , Local Service . ControlService , , . , , config... Strange.
, , InstallUtil.exe. , .
<Exec WorkingDirectory="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" Command="InstallUtil.exe -i XXX.exe" />
FYI, , SericeController, :
http://weblogs.asp.net/scottgu/archive/2006/02/12/438061.aspx