Windows 服务 DLL 替换 [英] Windows Service DLL Replace

查看:34
本文介绍了Windows 服务 DLL 替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一个已在函数内更新的 DLL,而我只需要为 Windows 服务更新它(DLL) - 我是否可以使用它,只需复制 DLL 并重新启动服务?还是我必须遵循 InstallUtil 流程?

If I have a DLL that's been updated within a function, and I just need to update it (the DLL) for a Windows Service - will it work by me, just copying the DLL and restarting the service? Or do I have to have to follow the InstallUtil process?

谢谢

推荐答案

只需更换 dll 并重新启动即可.但是,您可能需要在替换之前先停止该服务,因为该 dll 正在被另一个进程使用".

Simply replacing the dll and restarting should work. However, you might need to stop the service first before replacing, because the dll is 'in use by another process'.

这篇关于Windows 服务 DLL 替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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