It's an issue on a Win7-system.
It looks like system-Process (PID 4) (running ntoskrnl.exe) doesn't releases handles on *.exe files after the programs are closed.
Hence, those files can't be deleted, it's impossible to update any program.
I looked onto with the ProcessHacker or sysinternals Processexplorer (both in Admin-Environment) and no process of the *.exe are running for several minutes. But system has still an open handle to that *.exe. Trying to close that handle out of either of that tools is not possible. As I try to close that handle in Processexplorer, I get an pop-up message telling "Error opening process: The handle is invalid."
Hence, all options to delete the *.exe manually (Explorer, cmd, Powershell) don't work at all.
I checked the system (sfc command), no issues.
I tried the mentioned solution in Windows 7 access denied to executables.. by what? and had no success. Could the thumbs.db cache disabling really influence that ? I didn't tried yet the over-there mentioned answer.
How to fix that / release those handles without a restart ?
wpr.exe -start handlethenwpr.exe -stop C:\h.etlIn WPA you can then order the columns, as "Handle type" to focus on "File", followed by "Creating Process", so you can expand System, followed by "Object name" which would be the file in question, or just have Object Name as the first column and scroll down or add a filter. If you can find the handle being opened, the "Create Stack" column will show you where the call has come from and could identify the driver opening a handle. You could then disable that driver as a test. – HelpingHand Jun 26 '20 at 14:37