相关疑难解决方法(0)

如何使用WiX安装和启动Windows服务

我试图在Wix中使用下面的代码.

但是在安装时,安装程​​序在状态下冻结了3分钟:启动服务,然后我收到此消息"Service Jobservice无法启动.验证您是否具有足够的权限来启动系统服务".我的代码有什么问题吗?我可以要求用户在安装过程中输入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>
Run Code Online (Sandbox Code Playgroud)

installer windows-services wix autostart

59
推荐指数
3
解决办法
6万
查看次数

标签 统计

autostart ×1

installer ×1

windows-services ×1

wix ×1