简体   繁体   English

使用MSI Installer的Installer Windows服务

[英]Installer windows service using msi installer

I am new to the windows installer. 我是Windows安装程序的新手。 I need an .msi installer for a windows service written in plain c++ (No .NET). 我需要一个.msi安装程序,用于以纯c ++(否.NET)编写的Windows服务。 I have heard that it is possible, but i don't know how. 我听说有可能,但我不知道如何。

Can somebody tell me how to get the installer to install my service? 有人可以告诉我如何让安装程序安装我的服务吗? It needs to be an .msi isntaller. 它必须是.msi nottaller。

Thanks! 谢谢!

In the WiX toolset you'd just add to the Component that contains the File that is the service executable: 在WiX工具集中,您只需将其添加到包含FileComponent ,该File是服务可执行文件:

<ServiceInstall Id="MyService" Name="MyService" DisplayName="My Cool Service" 
                Description="Description of my cool service." 
                Start="auto" Type="ownProcess" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM