vs widows服务的发布
2023-09-11 14:19:35 时间
1、在service1.cs里空白处点击右键,弹出菜单选择 添加安装程序
2、自动生成ProjectInstaller.cs文件后 可在InitializeComponent()方法里自定义服务名称
3、安装服务 (建议制作成bat文件)
//请根据不同版本选择进入的framework cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 installutil F:/videoconvert.exe net stop ServiceCreateIndex net start ServiceCreateIndex
如果需要卸载服务请加参数 /u
相关文章
- 电子书 VS 纸质书
- [RxJS] ShareReplay vs share
- OpenGL与vs编程——error C2440: “glMaterialfv”: 无法从“GLfloat”转换为“const GLfloat *”
- [FE] Quasar BEX 热加载区别: Chrome vs Firefox
- Atitit OOCSS vs bem
- acdream 1431 Sum vs Product
- GemBox.Bundle 47.0.1012 VS Spire.Office Platinum 8.1.1
- 【K8S系列】第七讲:有状态服务 VS 无状态服务
- Oracle Developer Tools for VS Code连接Oracle