Archive: Check file write permissions before install


Check file write permissions before install
I am trying to write a sort of updater/installer using NSIS.

Before starting the copying of files, the installer should check if it can really write ALL the target files before starting the copying. (i.e. check user permissions and target lock status; in case the program is already running)

Is it possible to do this in NSIS script?

If checking all target files is not possible, then next option that i want to try is to check the write permission/lock status of one particular exe file. (I can provide the full file path).

Thanks in advance
:)


You can try opening the file in append ("a") mode using FileOpen.