重建后是否需要重新安装Windows服务 [英] Do you need to re-install a Windows service after rebuilding

查看:31
本文介绍了重建后是否需要重新安装Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在进行更改后重建 Windows 服务,是否可以只复制并替换旧的程序集/.exe 文件以运行这些更改,还是需要重新安装该服务?在安装新版本之前,我还必须先卸载服务吗?

If I rebuild a Windows Service after making changes, can I just copy and replace the old assembly / .exe files to get those changes to run or do I need to re-install the service? Also do I have to first uninstall the service before installing the new version?

推荐答案

您不必卸载并重新安装该服务,因为这只会添加有关可执行路径和启动选项的注册表信息.只需停止服务,复制您的程序集并重新启动它

You don't have to uninstall and reinstall the service since this only adds registry info regarding the executable path and launch options. Just stop the service, copy your assemblies and restart it

这篇关于重建后是否需要重新安装Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆