The error generated for me was similar, giving me the following alerts:
"Could not create temporary file for 'C:\Users\Me\AppData\Roaming\ProgramX\ProgramXversion\ProgramX.tmp': Error opening file “C:\Users\Me\AppData\Roaming\ProgramX\ProgramXversion\ProgramX.tmp”: Permission denied"
After consulting this page and opening the Properties window for
“C:\Users\Me\" (right click to open Properties),
I noticed that under Attributes, I had checked
"∎ Read Only (Only Applies to files in folder)".
This would certainly prevent any changes from being made to the folder and sub-folders in question.
Ensure that this, and the Hidden attribute (folder and subfolder visibility), is UnChecked, displaying the null box, before attempting further changes to the Permissions Properties, or else the changes won't take.
Make sure your Attribute settings display as unchecked
" □ Read Only (Only Applies to files in folder)" [and]
" □ Hidden"
Now you can proceed, and execute the requested permission changes to this folder and subfolders.
In event it asks for additional further confirmation for changes to some of the subfolders as it works through the queue, click on yes to proceed to finish.
I know this is the equivalent to the "Is it plugged in?" solution, but sometimes these small, overlooked details can be source of many problems, and are a simple fix.