0

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?

4

1 に答える 1

0

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.

于 2012-02-29T20:14:20.313 に答える