将Quartz安装为windows服务

时间:2015-01-19 13:15:34

标签: c# windows service scheduled-tasks quartz-scheduler

我使用Quartz服务器作为Windows服务来安排任务。我希望Quartz服务器成为Visual Studio安装程序项目的一部分。我已经为QuartzServer.exe创建了一个自定义操作,但它没有作为服务安装执行安装。如何做到这一点?

1 个答案:

答案 0 :(得分:1)

Quartz Server Windows服务基于topshelf,因此topshelf使用自己的框架命令来安装Windows服务。以下链接解释了可用于与MSI安装程序集成的机制

http://www.bjoernrochel.de/2010/01/09/how-to-integrate-a-topshelf-based-service-with-vs-setup-projects/