Recently whenever I have attempted to install virtually any program, I've been constantly receiving this error message "unable to execute file in the temporary directory error 5 access is denied". From several google searches I have understood that the general cause of this error message is a lack of privileges regarding the temp folder. However this has not helped me since I have the permissions required so I cannot give myself them. I've found a few suggestions to use the "hidden" administrator account or make another administrator account and install via those, this does not work either. This has only begun happening recently and I would prefer to fix the issue instead of restoring/formatting.
All help is appreciated, thank you!
Did you use the steps listed below?
Navigate to %temp% or C:\Users\[Username]\AppData\Local and right click on the Temp folder and choose properties, then click the security tab and click advanced.
On the permissions tab you should see the permissions that are there. There should be 3 which are:
1. 'SYSTEM' with Full control which applies to 'This folder, subfolders and files'
2. 'Administrators' with Full control which applies to 'This folder, subfolders and files'
3. 'Your Username' with Full control which applies to 'This folder, subfolders and files'
and all 3 should be inherited from the C:\Users\[Username]\ folder.
If you don't have the 'Include inheritable permissions from this object's parent' option ticked, then tick it and click continue; if there are any problems, then remove the permissions that aren't inherited.
Once you click 'Apply' and click 'OK' you should have the permissions to write to the directory and you won't get those error messages any more.