安装 – WiX:安装服务为LocalService

前端之家收集整理的这篇文章主要介绍了安装 – WiX:安装服务为LocalService前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图通过WiX 3.0获得我的应用程序安装程序.确切的代码是:
<File Id="ServiceComponentMain" Name="$(var.myProgramService.TargetFileName)" Source="$(var.myProgramService.TargetPath)" DiskId="1" Vital="yes"/>

<!-- service will need to be installed under Local Service -->
<ServiceInstall
                        Id="MyProgramServiceInstaller"
                        Type="ownProcess"
                        Vital="yes"
                        Name="MyProgramAddon"
                        DisplayName="[removed]"
                        Description="[removed]"
                        Start="auto"
                        Account="LocalService"
                        ErrorControl="ignore"
                        Interactive="no"/>
<ServiceControl Id="StartDDService" Name="MyProgramServiceInstaller" Start="install" Wait="no" />
<ServiceControl Id="StopDDService" Name="MyProgramServiceInstaller" Stop="both" Wait="yes" Remove="uninstall" />

因为某些原因,LocalService在“安装服务”步骤失败,如果我将其更改为“LocalSystem”,则安装程序在尝试启动服务时会超时.

该服务手动启动,在系统启动时,所有意图和目的都很好.我听说在本地服务下有服务正常工作的问题,但Google并没有真正的帮助,因为每个人的回应都已经“得到它的工作kthx”.

只是想要在安装过程中设置和启动此服务,就是这样.任何帮助?谢谢!

确保在安装时关闭services.msc窗口
原文链接:https://www.f2er.com/windows/371280.html

猜你在找的Windows相关文章