如何更新.exe而不删除旧的并粘贴新的? [英] How to update .exe without deleting the old one and pasting the new one?

查看:105
本文介绍了如何更新.exe而不删除旧的并粘贴新的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有相同的程序在多个地方运行。

每当我想要更新exe时我必须删除它并复制新的。

有没有办法更新它而不执行此步骤。

我已经研究并发现了一些名为安装软件的东西。

I have same program running at multiple places.
Whenever i want to update the exe i have to delete it and copy the new one.
Is there any way to update it without doing this step.
I have researched and came across something called installation software.

推荐答案

根据定义,从立场来看对于文件系统,文件更新正在删除它并创建一个具有相同名称的新文件。并且没有任何情况下你需要做任何其他事情。为什么?在这方面,问题根本没有意义。



此外,如果应用程序正在运行,该文件受操作系统保护,除非你杀死,否则无法删除/修改所有使用它的过程。



-SA
By definition, from the standpoint of the file system, update of the file is deleting it and creating an new one with the same name. And there are no situations when you would need to do anything else. Why? In this respect, the question simply makes no sense.

Moreover, if the application is running, the file is protected by OS and cannot be deleted/modified unless you kill all the processes using it.

—SA


就在昨天我回答了类似的问题,请参阅我需要终止进程并启动在C#中经过一段时间后的相同过程 [ ^ ]。好吧,最终删除和复制的过程只能由帮助应用程序自动完成。
Just yesterday I answered a similar question, see I need to kill process and start the same process after some timespan in C#[^]. Well, eventually that process of deleting and copying gets just automated by a helper application.


这篇关于如何更新.exe而不删除旧的并粘贴新的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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