我正在安装多个 .net Windows 服务。所有服务都将所有依赖项安装在适当的文件夹中。但是,只有第一个会运行。其他服务给出错误 1053:服务没有及时开始响应或控制请求。
想法?
编辑:这不需要 30 秒。它发生在大约 1 秒内。
编辑:
<ComponentGroup Id="IngestServiceComponents" Directory="IngestINSTALLFOLDER">
<Component Id="IngestService" Guid="5a95ee28-c9da-46b9-8396-cef98fa8fcbb">
<File Id="IssueIngestService.exe" Name="IngestService.exe" Source="..\IngestService\bin\Release\IngestService.exe" Vital="yes" KeyPath="yes" DiskId="1"/>
<File Id="IngestService.exe.config" Name="IngestService.exe.config" Source="..\IngestService\bin\Release\IngestService.exe.config" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="Libraries2_1" Name="Libraries2.dll" Source="..\IngestService\bin\Release\Libraries2.dll" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="DLibraries2_1" Name="DLibraries2.dll" Source="..\IngestService\bin\Release\DLibraries2.dll" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="ICSharpCode.SharpZipLib_1" Name="ICSharpCode.SharpZipLib.dll" Source="..\..\Assemblies\ICSharpCode.SharpZipLib.dll" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="ChilkatDotNet45_1" Name="ChilkatDotNet45.dll" Source="..\..\Assemblies\ChilkatDotNet45.dll" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="MediaInfo_1" Name="MediaInfo.dll" Source="..\..\Assemblies\MediaInfo.dll" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="XmpToolkit_1" Name="XmpToolkit.dll" Source="..\..\Assemblies\XmpToolkit.dll" Vital="yes" KeyPath="no" DiskId="1"/>
<File Id="ffmpeg.exe_1" Name="ffmpeg.exe" Source="..\..\Assemblies\ffmpeg.exe" Vital="yes" KeyPath="no" DiskId="1"/>
<ServiceInstall
Id="IngestServiceInstaller"
Type="ownProcess"
Vital="yes"
Name="IngestService"
DisplayName="Ingest"
Description="Ingest Service"
Start="auto"
Account="user"
Password="password"
ErrorControl="ignore"
Interactive="no">
</ServiceInstall>
<ServiceControl Id="IngestStartService" Stop="both" Remove="uninstall" Name="IngestService" Wait="no" />
</Component>
</ComponentGroup>