安装 – WiX:安装服务为LocalService
发布时间:2020-12-13 20:15:52 所属栏目:Windows 来源:网络整理
导读:我试图通过WiX 3.0获得我的应用程序安装程序.确切的代码是: File Id="ServiceComponentMain" Name="$(var.myProgramService.TargetFileName)" Source="$(var.myProgramService.TargetPath)" DiskId="1" Vital="yes"/!-- service will need to be installed
我试图通过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窗口
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- castle-windsor – 在哪里可以找到Castle.MicroKernel.dll
- windows – 免费代码覆盖工具
- 我可以在64位Windows 10上创建基于x86的Android虚拟设备(AV
- .NET Core跨平台部署
- 在WPF中使用.NET 2.0(Windows窗体)控件的限制?
- emacs以编程方式更改窗口大小
- 如何在相同的Windows XP框上运行python 2.6和3.0?
- 解决 安装或卸载软件时报错Error 1001 的问题
- Install Terraform on Windows, Linux and Mac OS
- untagged – 我应该为Windows Server 2008做MCSE 2003或MCI
推荐文章
站长推荐
- 将DLL导入Eclipse Java项目
- Windows – 导出GFI MailArchiver电子邮件以导入
- 作为Windows服务运行的Python:OSError:[WinErr
- gitblit server windows搭建
- windows-server-2012-r2-TLS 1.2 Windows Server
- windows平台中配置nginx+php环境
- wpf – 使用Microsoft(或其他)功能区与大型项目和
- 在COM dll上使用tlbexp.exe
- windows-phone-7 – Phonegap WP7 Visual Studio
- Windows命令中的“2>&1”有什么作用?
热点阅读