As was stated by grahamb, this is a permissions issue. A number of things could be blocking the installation. I recommend that users begin your troubleshooting by temporarily disabling any anti-virus software. Microsoft Defender's Controlled Folder Access will prevent this access as well. If you have that enabled it, it will need to be temporarily disabled to permit installation.
Edit: This should be an obvious one, but let's get it out there: ensure you have permissions to install the software.
To be clear, I understand that the OP's issue here was resolved, and that this is a dated thread. I just wanted to ensure that these intial troubleshooting steps appeared somewhere here. I expect most users will not get past the permissions issue with a different download. This issue just occurred for me today, so the context is still relevant even though the version number has change.
That error is 0x80070005 - Access is denied
Is your system fully up to date and are you sure you're running the installer with elevated privileges (which should happen automagically)?
Thanks. As far as I know the system is fully up to date. Is there any specific related patch that I need to check? The installer runs with elevated privileges too.
You could try manually downloading the appropriate VC_Redist.xxx from here and then running it from an elevated prompt with the
/log <path-to-logfile>
flag and examining the log file. The log file can be quite voluminous and I can't really tell you to look for other than text such as "error".Thanks again. VC_redist.x64 downloaded from Microsoft installed without problem and now I have 3 versions of Visual C++ 2015 on my laptop, but still when I try installing Wireshark 4.0.4, it fails to the same error.
I downloaded Wireshark-win64-4.0.4.msi and that installed without any problem. Just to update the case.