gpt4 book ai didi

c++ - 使用 msi 安装程序安装 Windows 服务

转载 作者:可可西里 更新时间:2023-11-01 10:00:08 24 4
gpt4 key购买 nike

我是 Windows 安装程序的新手。我需要一个 .msi 安装程序,用于用纯 C++(无 .NET)编写的 Windows 服务。我听说这是可能的,但我不知道如何。

有人可以告诉我如何让安装程序安装我的服务吗?它需要是一个 .msi isnaller。

谢谢!

最佳答案

在 WiX 工具集中,您只需添加到包含作为服务可执行文件的 FileComponent:

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

关于c++ - 使用 msi 安装程序安装 Windows 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15254431/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com