我试图在Wix中使用下面的代码。如何使用WiX安装和启动Windows服务
但是在安装时,安装程序在状态上冻结了3分钟:启动服务,然后收到此消息“服务作业服务无法启动,请确认您有足够的权限启动系统服务”。 我的密码有问题吗?我可以让用户在安装过程中输入windows系统的用户名和密码来获得“权限”吗?
非常感谢!
<File Id='JobServiceEXE' Name='JobService.exe' DiskId='1'
Source='JobService.exe' Vital='yes' KeyPath='yes'/>
<ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes"
Name="JobService" DisplayName="123 Co. JobService"
Description="Monitoring and management Jobs" Start="auto"
Account="LocalSystem" ErrorControl="ignore" Interactive="no" />
<ServiceControl Id="StartService" Stop="both" Remove="uninstall"
Name="JobService" Wait="yes" />
</Component>
我删除了“Wait =”yes“”,现在安装正常,但在Windows任务管理器中服务“JobService”的状态为“停止”,它如何自动启动?谢谢。 – Ray
ServiceInstall元素中的Start =“auto” –