, , , , , , , FILE_SHARE_DELETE. , , , . .
If you are configured for remote flow, see workarounds on the MSDN page ; maybe there is inspiration. You can also consider that only brute force kills other processes (first at first, if necessary, as needed), since you still need access to the admin, and evading their internal handles may not leave them in good condition. What installers do (or ask the user to do) when they need to replace open files without rebooting.
source
share