Archive: how to ignore when file is currently used


how to ignore when file is currently used
I use File "filename.dll" to overwrite. But if the filename.dll is currently used, it prompt "Error opening file for writing, Abort or Retry or Ignore"
How do i automatic choose "Ignore" so that I can continue to the next line.. I don't want any warning popup.


just found this and it works
SetOverwrite try


oh , yes ,just do it !


Help about overwrite
How to DONT use SetOverwrite

fact :

If the file already exist you will NEVER replace it...

Example:

You wanna replace xxxx.exe but xxx.exe is currently in use, just skip it, but if xxxx.exe is NOT currently in use... YOU just want to replace it !!!

So your overwrite method...is bad....

Solution : ????

Thx


To overwrite files which are in use, you must overwrite them after reboot. To do that, you can use Delete /REBOOTOK and Rename /REBOOTOK. Take a look at the source for UpgradeDLL (can be found at the Archive) and the new Library macros for examples.

Please post the same question only once. I've deleted the other thread.


Thx .... i understand now... sorry to post twice