The root reason for causing this is that you dont have enough privileges.
Here, I will introduce how to fix the error.
Besides, you cant access/modify files saved on it (unable to access directory for installation).

At this time, you should right hit the system file and chooseRun as administrator.
Youll be disappointed when the system error 5 has occurred since it will stop you from what youre doing.
But you should be relax since 5 useful fixes for error 5 access is denied will be given later.

Actually, its the permission; you dont have enough permissions/privileges that are required to make the changes.
[SOLVED] Operating System Not Found Error How To Recover Data?
How to fix if destination folder access denied?You should follow the solutions and steps mentioned below.

If not, just make your profile Administrator.
[Fixed] WinX Menu Not Working In Windows 10!
Fix 3: Modify Permissions of Temp folder
File Explorer/Windows Explorer stopped working on Windows 10.

Therefore, you should turn it off for avoid system error 5.
Thats all about how to fix error 5 access is denied yourself.

