wix的服务安装问题 [英] Service install issue with wix
问题描述
亲爱的,
我正在尝试在wix安装程序中安装服务。
使用SC命令时,服务本身将安装没有问题,但是,当我按如下方式使用ServiceInstall节点时: -
< 组件 Id = SCHEDULER_SOURCE_09 DiskId = 1 KeyPath = 是 Guid = < span class =code-keyword> 81FF8979-5827-4556-A22C-FAE6EFDFC1 59 >
< 文件 Id = TRAMCountersService.exe 来源 < span class =code-keyword> = $(var.Root)\Scheduler \TRAMCountersService.exe / >
< ServiceInstall 名称 = 测试 Id = 测试 ErrorControl = 正常 类型 = ownProcess 开始 = auto / >
< / Component >
安装程序运行时,没有安装任何服务,日志显示以下内容。
< pre lang =text>动作14:42:19:InstallServices。安装新服务
操作开始14:42:19:InstallServices。
行动结束14:42:19:InstallServices。返回值1.
有人有任何指针或建议吗?
感谢所有
(var.Root)\Scheduler \TRAMCountersService.exe / >
< ServiceInstall 名称 = 测试 Id = 测试 ErrorControl = 普通 Type = ownProcess 开始 = 自动 / >
< / Component >
当安装程序运行时,没有安装任何服务,日志显示以下内容。
行动14:42:19:InstallServices。安装新服务
操作开始14:42:19:InstallServices。
行动结束14:42:19:InstallServices。返回值1.
有没有人有任何指示或建议?
感谢所有人
你必须在File元素上有KeyPath =yes,你也应该有ServiceControl元素作为组件的childe来启动/停止和卸载服务。
Dear all,
I am trying to install services during a wix installer.
The service itself will install with no issues using the SC command, however, when I use the ServiceInstall node as follows :-
<Component Id="SCHEDULER_SOURCE_09" DiskId="1" KeyPath="yes" Guid="81FF8979-5827-4556-A22C-FAE6EFDFC159">
<File Id="TRAMCountersService.exe" Source="$(var.Root)\Scheduler\TRAMCountersService.exe"/>
<ServiceInstall Name="Test" Id="Test" ErrorControl="normal" Type="ownProcess" Start="auto"/>
</Component>
When the installer runs, no service is installed and the log shows the following.
Action 14:42:19: InstallServices. Installing new services
Action start 14:42:19: InstallServices.
Action ended 14:42:19: InstallServices. Return value 1.
Does anybody have any pointers or suggestions?
Thanks to all
(var.Root)\Scheduler\TRAMCountersService.exe"/> <ServiceInstall Name="Test" Id="Test" ErrorControl="normal" Type="ownProcess" Start="auto"/> </Component>
When the installer runs, no service is installed and the log shows the following.
Action 14:42:19: InstallServices. Installing new services Action start 14:42:19: InstallServices. Action ended 14:42:19: InstallServices. Return value 1.
Does anybody have any pointers or suggestions?
Thanks to all
you must have KeyPath="yes" on File element and also you should have ServiceControl element as childe of Component to Start/stop and uninstall service.
这篇关于wix的服务安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!