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

后端 未结 10 1896
终归单人心
终归单人心 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

    (so Windows releases it's hold on the file)

    Instead, do Ctrl+Alt+Del right after the Stop of the service and kill the .exe of the service. Than, you can uninstall the service without rebooting. This happened to me in the past and it solves the part that you need to reboot.

提交回复
热议问题