Installing the win32 service using MSBuild and Microsoft.Sdc.Tasks

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?

+5
source share
2 answers

, , , , Local Service . ControlService , , . , , config... Strange.

, , InstallUtil.exe. , .

<Exec WorkingDirectory="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"
            Command="InstallUtil.exe -i XXX.exe" />
+4

All Articles