I’m writing an update program (using NSIS) and I want acquire some kind of lock on a installation directory to be sure I have write access to all files inside that directory. Is there a way to do that? Or at least how to detect that none files in specified directory are in use?
Share
The correct way to do what you are trying to do is to use Transactional NTFS to perform a single massive write of multiple files to the directory. This way you will not need to use locks.