Archive: best way to install when there maybe open files


best way to install when there maybe open files
Hi Guys,
I'm after a little advice on the best practice for installing files where one or more may be in use. The installer I am working on at the moment is an upgrade to an existing installation, so all the files are overwriting existing files (about 200 files in a couple of folders).

So, what I really want is to install the files, detect if any have failed to copy and if so, force a reboot so they can be copied at boot up time. i.e. combination of File /r and rename /REBOOTOK

Thanks in advance


You have two options:

1. Ensure no files are in use (you can use the LockedList plug-in for example).
2. Install on reboot (will ask the user to reboot on the finish page).

Stu


Thanks for the quick reply.


As for me, i'm using nsisDDE plug-in to tell the existing program to exit if it was currently running, so that its files are not in use.