如何自动启动窗口服务 [英] How to auto start window service

查看:260
本文介绍了如何自动启动窗口服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我在C#(VS2008)开发的窗口服务。
请告诉我,我应该怎么做,使之自动启动后每次当系统被重新启动时安装,同时自动启动

I have a window service which i developed in c# (vs2008). please tell me what should i do to make it auto start after installation and also auto start on every time when system gets restarted.

编辑:
口正在使用的设置和放大器;部署项目来安装它。
谢谢

I am using setup & deployment project to install it. Thanks

推荐答案

按照的instructions 来安装程序添加到您的服务应用程序。要特别注意步骤5,你设置的 StartType 财产。

Follow the instructions given here to add an installer to your Service application. Pay particular attention to step 5, where you set the StartType property.

要在安装后启动服务,请参阅的自动启动Windows服务上安装

To start the service after installation, see Automatically start a Windows Service on install

这篇关于如何自动启动窗口服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆