如何用VS创建Windows Service

这篇文章记录了用VS创建Windows Service详细步骤。Summary as follow:

1. Add Windows Service

2. Click Service

3. Add Installer

4. Setup StartType or ServiceName in ServiceInstaller

5. Setup Account in ServiceProcessInstaller

6. Create Visual Studio Installer project

7. right-click Setup -> Add -> Project Output

8. Select Service project and Primary Output

9. right-click the setup project -> View -> Custom Actions

10. Add Custom Action -> Application Folder -> Primary Outputt -> OK

11. Build -> right-click setup project -> install

posted @ 2011-01-05 12:40  dragonpig  阅读(355)  评论(0编辑  收藏  举报