How to uninstall a windows service and delete its files without rebooting

后端 未结 10 1884
终归单人心
终归单人心 2021-01-30 16:40

My current project involves deploying an upgraded .exe file that runs as a Windows Service. In order to overwrite the existing .exe with the new version, I currently need to:

10条回答
  •  隐瞒了意图╮
    2021-01-30 17:23

    Are you not able to stop the service before the update (and restart after the update) using the commands below?

    net stop 
    net start 
    

    Whenever I'm testing/deploying a service I'm able to upload files without reinstalling as long as the service is stopped. I'm not sure if the issue you are having is different.

提交回复
热议问题