【问题标题】:Installer windows service using msi installer使用 msi 安装程序的安装程序 windows 服务
【发布时间】:2013-02-21 15:53:26
【问题描述】:

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

谁能告诉我如何让安装程序安装我的服务?它需要是一个 .msi 文件。

谢谢!

【问题讨论】:

    标签: c++ windows windows-installer


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢,有机会我会试试的。你能说出一个关于 WiX 安装程序的好教程,尤其是关于我的问题吗?
    • @Christopher Painter,组件中的第一个文件将是 KeyPath,理想情况下,组件中只有服务可执行文件,因此不需要 KeyPath 属性。
    • @peer,你可以在wixtoolset.org/documentation/tutorial找到WiX教程
    猜你喜欢
    • 2013-09-30
    • 2010-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多