c#windows服务是否更改配置需要重新安装并重新安装?

c# windows service does change the configuration require reinstall and install again?

我开发了 windows 服务并使用

将其安装在服务器上

installUtil 命令

现在客户端要更改用户名,用户名已经在windows服务的配置文件中配置了,我的问题是如果只更改配置文件中的那个字段就足够了吗?或者我需要卸载该服务并重新安装?

您不需要重新安装该服务。

  1. 停止服务
  2. 覆盖服务路径中的必要文​​件
  3. 再次启动服务