如何用VS创建Windows Service
时间:2011-01-05 来源:dragonpig
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
相关阅读 更多 +