安装 – 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窗口

相关文章

Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...
Windows文件操作基础代码 Windows下对文件进行操作使用的一段...
Winpcap基础代码 使用Winpcap进行网络数据的截获和发送都需要...
使用vbs脚本进行批量编码转换 最近需要使用SourceInsight查看...