【发布时间】:2011-01-01 11:36:08
【问题描述】:
我正在尝试创建一个 wix 安装程序以在 NetworkService 帐户下安装和启动 Windows 服务,但失败了,我得到的是“服务”()无法安装。验证您是否有足够的权限来安装系统服务。”
请指教,我的代码如下:
<Component Id="service" Guid='myguid'>
<File Id='JobServiceEXE' Name='JobService.exe' DiskId='1' Source='mypath\JobService.exe' KeyPath='yes' />
<ServiceControl Id="JobService" Name="[SERVICEID]" Stop="uninstall" Remove="uninstall" Wait="yes" />
<ServiceInstall
Id="JobService" Name="[SERVICEID]" DisplayName="[SERVICENAME]" Type="ownProcess" Start="auto" ErrorControl="normal" Vital ='yes'
Account="NT Authority\NetworkService"
Description="Job Service" />
</Component>
谢谢!
【问题讨论】:
标签: windows installation service wix