Replace exe file when application is running [duplicate]

蓝咒 提交于 2019-12-10 16:49:22

问题


I have simple question - is it possible, to replace *.exe file (application file), when it's running? I mean i know that i cannot do that when app is running, but maybe it's possible to do something like: do application.shutdown() replace oldExe -> newExe application.restart().


回答1:


Create a helper application. You will run this "helper" application when you need it, and it can monitor/replace the main application when it has been closed. Once replaced, the helper application can launch your main application again.

You can also run command line arguments to your helper app, telling it what you need it to do.



来源:https://stackoverflow.com/questions/18079068/replace-exe-file-when-application-is-running

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!