12 Jun 2019 08:15 PM - last edited on 11 Apr 2023 01:38 PM by Karolina_Linda
Failed to read from file "C:\WINDOWS\Installer\MSI40DB.tmp". Error: The process cannot access the file because it is being used by another process.
Solved! Go to Solution.
12 Jun 2019 08:26 PM
I suggest stopping the installer, deleting the .tmp files in the directory c:\windows\installer\*, then reboot and try again. If you can't delete the tmp files, then do the reboot before the delete.
13 Jun 2019 03:41 AM
I had a similar issue and simply restarting the installer (sometimes it took several restarts) allowed it to complete. Since I could work around it, I never delved into the root cause, but I suspected it was the anti-virus software running on the host. So, if you cannot get around it with restarts I would next look into turning off anti-virus, if it is running.
13 Jun 2019 06:47 AM
This is correct, the mentioned error is a result of external software (most often an antivirus) blocking executing of the OneAgent installer.
Please note that the Process Monitor from Windows Sysinternals suite is a very handy tool that will help you to precisely pinpoint the software that is interfering.
10 Jul 2019 04:04 PM
Thank you Dave! You helped me out with this problem.
14 Jun 2019 01:37 AM
Hello Tomasz
We have disabled antivirus and tried again but after that also we were facing the same issue.That server was from prod setup so prepared clone for this installation testing and this clone is not in network so possibility of interference from external software is also very low.
But appmon 7.0 agent setup is also there on that server, can it be the reason for the issue. Because we disabled appmon agent and tried but issue was still there.
14 Jun 2019 02:10 AM
Did you try my idea of removing the files, and rebooting, then installing? Some process has those .tmp files locked and I don't believe it's the AppMon components. It's likely a leftover OneAgent installer process.
14 Jun 2019 03:02 AM
If you are able to install it on this host, I would recommend you try Sysinternals Process Explorer:
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
Also, is it the same file each time or a different one each time?
When I had a similar issue it was different each time.
I think the temp files are created by the OneAgent installer, so I think it has to be anti-virus, automated backup or even some tmp file reaper that must be doing this. I don't see how AppMon would be a factor in the install process, but it should definitely be "uninstrumented" if not totally removed anyway as part of the OneAgent install process because there can be coexistence issues, especially on web servers.