I have a utility that updates applications by simply copying / replacing executable files. Now I have some DLL files that also need to be updated. However, sometimes Windows will not allow me to replace it, because something uses it, and sometimes so many things using DLLs that I cannot guarantee will be unlocked for me to replace it.
Currently, my only job is to rename the existing DLL first, and then I can copy the new one in its place. But then the old DLL is left behind with the changed file name.
How can I replace the DLL programmatically in this situation?
dll delphi delphi-xe2 access-denied file-copying
Jerry dodge
source share