【发布时间】:2013-07-31 13:11:06
【问题描述】:
我们有一个安装程序,它可以安装 Windows 服务和一些文件。有时当我们使用新安装更新安装时(通过简单地安装新包;小升级、产品版本更改、产品 ID 不变),服务无法启动。这是因为安装文件夹中缺少一些服务启动时需要的文件。
目前我们只有<Feature />,也只有一个<ComponentGroup />。 <ComponentGroup /> 本身包含服务并包含一些其他组件,其中包含文件。看起来是这样的(空属性是占位符,实际上是填充的):
<Component Id="" Guid="" Directory="">
<File Source="" Id="" />
<File Source="" Id="" />
</Component>
<Component Id="" Guid="" Directory="">
<File Source="" Id="" />
<File Source="" Id="" />
</Component>
<Component Id="" Guid="" Directory="">
<File Source="" Id="" />
<File Source="" Id="" />
</Component>
<Component Id="" Guid="" Directory="">
<File Source="" Id="" />
<File Source="" Id="" />
<File Source="" Id="" />
<File Source="" Id="" />
<ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes" Name="" DisplayName="" Description="" Start="auto" Account="LocalSystem" ErrorControl="ignore" Interactive="no">
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" ResetPeriodInDays="5" />
</ServiceInstall>
<ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="" Wait="yes" />
</Component>
不好的是服务依赖于其他一些组件。
如何指定这些依赖项?还是我需要将所有文件放在包含<ServiceInstall /> 的组件中?
谢谢, 约翰内斯
【问题讨论】:
-
我已经忘记了,我在这里发布了一个关于此的问题 :) 问题与我们的构建过程有关,与 WIX 本身无关。无论如何谢谢你的回复。顺便问一下,我怎样才能将此问题标记为已回答或其他?
-
我认为可能是这种情况(因为问题太老了)。如果您想将其标记为已回答,我扩展了我的评论并将其发布为答案。谢谢!