【问题标题】:Simple installation of WindowsServiceWindowsService的简单安装
【发布时间】:2011-09-07 23:55:50
【问题描述】:

我在使用 C# Express 实现 WindowsService 时遇到了困难。我想要的是编写一个类,将安装逻辑与服务,呃,服务分开。为了让这一点变得有价值,我希望删除从安装程序派生的类,只留下服务本身,正如我认为http://msdn.microsoft.com/en-us/library/zt39148a%28v=VS.100%29.aspx 可能描述的那样。我的 Express edn 中没有所有这些花哨的安装和打包向导,所以我只能使用 .NET 类。

如果可能的话,我正在考虑 ManagedInstallerClassAssemblyInstaller__ installutil。

【问题讨论】:

    标签: c# .net windows-services


    【解决方案1】:

    使用ManagedInstallerClass

    this 问题的答案非常好。请检查Self install windows service in .NET c# 和此处的代码中间页http://blogs.microsoft.co.il/blogs/kim/archive/2009/01/04/self-installing-windows-service.aspx(此示例使用AssemblyInstaller)。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-30
    • 1970-01-01
    • 1970-01-01
    • 2018-04-11
    • 2019-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多