Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个测试 Windows 服务并使用 installutil 安装它,效果很好。
之后,我对代码进行了更改并尝试再次安装,但出现错误。我是否需要先删除服务,然后使用 installutil 重新安装?还是有其他方法?
如果可执行文件的名称相同,那么您可以简单地停止 Windows 服务,在旧文件之上复制新文件并启动服务。