PDA

View Full Version : Checking for files in use


oeb
07-06-2010, 07:28 AM
It is very time-consuming to add check for files in use manually. Would it be possible to get this as built-in functionality?

At least I would like a function to check if any of the files that setup is ready to install are in use. The way it is now I have to check for every specific file that will be updated.

Folder check is not an option, since there might be files that are not updated in this installation, and having to unnecessary close an application just annoys the user. In our case we also have a critical service running that we will not close unless absolutely needed.

linder
07-06-2010, 07:53 AM
No, this is (from the technical point-of-view) absolutely impossible! And you already provided an answer why this is impossible ;) During the runtime execution of the script, there might be files that are skipped. So you can't check (automatically) for relevant in-use files before the script is executed.

Hope this helps.

Friedrich

linder
07-06-2010, 07:55 AM
BTW, you can try to put the "Delayed File Install" action around your files to be installed (if this is possible in your case). This will only "install" the files if all files can be written (if they are not in-use).

Friedrich