Share via

windows 7 64 home premium. Error 5: Access denied

Anonymous
2013-07-02T17:02:21+00:00

"Error 5: Access denied.Setup could not be executed in temporarx folder. Setup was cancelled. Error 5: Access denied"

What is the reason for this error?

I do have administrator rights.

Might installation of newer Windows Installer solve the problem and if so, which file to download?

How can I determine which version is installed?

Windows for home | Previous Windows versions | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2013-07-03T03:46:57+00:00

Hi,

•        What is the exact error message that you get?

•        What software are you trying to install?

Method 1

Step 1: Register the dll files one by one

a.       Click the "Start", type CMD in start search.

b.    Right click on Command Prompt and select Run as Administrator.

c.     Type the following commands and hit enter.

Regsvr32 wuaueng.dll

Regsvr32 shell32.dll

Regsvr32 jscript.dll

Regsvr32 vbscript.dll

Step 2:

Start the Windows Installer service

a. Click Start, type Services.msc and press {ENTER}

b. Double-click Windows Installer

c. Set the Startup type of Windows Installer to Manual

d. Click Start to start the service. Note down the error message if any.

e. Click OK.

Method 2: Unregister and re-register the Windows Installer to do that follow the steps provided below.

a. Click Start, click Run, type MSIEXEC /UNREGISTER, and then click OK. Even if you do this correctly, it may look like nothing occurs.

b. Click Start, click Run, type MSIEXEC /REGSERVER, and then click OK. Even if you do this correctly, it may look like nothing occurs, or you may briefly see an hourglass. After you run this command, the operation is complete.

c. Try your Windows Installer-based application again.

Restart the computer and check if the issue persists.

Please post back if you are still experiencing the issue. I will be glad to provide you with the additional options available that you can utilize to get the issue resolved.

Was this answer helpful?

10+ people found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-10-13T05:04:29+00:00

    I have finally found a way to get rid of pesky “Error 5: Permission denied” which appeared every time I tried to install new software in Windows 7 Pro. I have no idea when and how exactly problem started but it seems that it roughly coincided with installation of home network printer. 

    Not only I could not install software but automatic updates were also unable to get installed properly. 

    I was the only user and I did have Administrator privileges, no viruses could be detected with any of several different AV programs I tried… Yet, “Temp” directory used for software installation was somehow inaccessible during updates or software installation which resulted in mentioned error.

    Simple deleting problem “Temp” and creating new “Temp” directory of the same name and location did not work for me. None of the other solutions I have found online were successful in resolving my problem either, till I used below described procedure.

    I am sure there are different ways to resolve this but what resolved the problem for me was to create new Admin user and copy “Temp” directory under:

    C:\Users<Type your Admin user name here>\AppData\Local\

    Here are general steps to resolve the problem (for a bit less experienced users, more detailed steps are given below general steps) 

    General steps:

    • Create new user
    • Give the new user Administrator privileges
    • Show  hidden files for “new” user
    • Show hidden files for “problem” user
    • Log off from “Problem” user  and log on as newly created user
    • Copy above mentioned “Temp” directory from “new” user to “problem” user

    More detailed steps:

    Create new user with administrator privileges (while logged on as “problem” Admin user).  (see official Microsoft tutorial here):

    • click  the Start button,
    • click Control Panel,
    • click User Accounts.
    • Click Manage another account. (If you're prompted for an administrator password or confirmation, type the password or provide confirmation).
    • Click Create a new account.
    • Type the name you want to give the user account, select “Administrator” button, and then click Create Account.

    Now that you created new user account with Admin privileges you first need to log on as the new user and then you need to copy “Temp” directory from that user to the one you had problem with. So go ahead and Log on as newly created user.

    After you have logged on as newly created user you can make hidden folders visible (including “Temp” folder you want to copy). If you are already able to see this directory, you can skip the next steps.

    • Open Folder Options by clicking the Start button,
    • click Computer,
    • navigate to C:\Users<Type your Admin (problem) user name here>\
    • click Organize,
    • click Folder and Search Options,
    • click the View tab.
    • Under Advanced settings, click Show hidden files, folders, and drives,
    • Finally click OK.
    • Repeat  above steps for newly created user so you can see hidden folders there as well

    Once you did this you should be able to see all previously hidden folders and you should be able to navigate to:

    C:\Users<Type your New Admin user name here>\AppData\Local\

    Now copy “Temp” folder listed in the above directory 

    Navigate to C:\Users<Type your Old (Problem) Admin user name here>\AppData\Local\

    Delete “Temp” folder listed in the above directory

    Paste “Temp” directory from C:\Users<Type your New Admin user name here>\AppData\Local\

    Done!

    Once you resolved the problem you can delete new user (or leave it on) – it’s up to you.

    Please note this is what worked for me and I do not claim this will work for all nor this is even a “proper” solution. It just worked for me and I hope it will work for others…

    And the last but not least: I am not Windows 7 expert and cannot help with other issues.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-10-11T22:21:04+00:00

    I have tried every fix suggested here and the automatic fix, have purchased programs to repair and tried the FIXIT several times.  I still cannot start restart the installer due to Error 5: Access denied.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-07-25T15:03:00+00:00

    Hi,

    Thank you detailed reply.

    I would have you try to run the fixit and check.

    Fix problems with programs that can't be installed or uninstalled

    http://support.microsoft.com/mats/program_install_and_uninstall/

    Please let us know the results so we may try to help you as soon as possible.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-07-03T18:09:47+00:00
    Hello hoperforhelp:<br> <br><br> <br><br>Your question on Microsoft Community has received a reply:<br><br><br><br><br>Question<br><br><br><br>windows 7 64 home premium.<br> Error 5: Access denied <br><br><br><br>Reply<br><br><br><br>Hi,<br><br><br><br><br>Windows 7 64 home premium<br><br><br><br>Windows version 6.1.7600, German language<br><br><br><br>•        What is the exact error message that you get?<br><br><br><br>In German language:<br><br><br><br>„Die Datei konnte nicht im temporaeren Ordner ausgefuehrt werden.<br><br><br><br>Das Setup wurde abgebrochen.<br><br><br><br>Fehler 5: Zugriff verweigert.“<br><br><br><br>FREE TRANSLATION IN ENGLISH:<br><br><br><br>“The file could not be executed in the <temporary folder.<br><br><br><br>The setup was cancelled.<br><br><br><br>Error 5: access denied.”<br><br><br><br>•        What software are you trying to install?<br><br><br><br>Super Easy Video Converter 2      version 2.2.2296<br><br><br><br>by supereasy_video_converter_2_2.1.2296_7804.exe<br><br><br><br>22.4 MB<br><br><br><br> Method 1<br><br><br><br>Step 1: Register the dll files one by one<br><br><br><br>a.       Click the "Start", type CMD in start search.<br><br><br><br>b.    Right click on Command Prompt and select Run as Administrator.<br><br><br><br>Prompt appears as C:\USERS\AW><br><br><br><br>(I am AW with administrator rights)<br><br><br><br>c.     Type the following commands and hit enter.<br><br><br><br>Regsvr32 wuaueng.dll<br><br><br><br>Having typed this command and enter, results in following message:<br><br><br><br>FREE TRANSLATION in English:<br><br><br><br>“The module wuaueng.dll was loaded. The call for the DllRegisterServer<br><br><br><br>was not successful with errorcode 0x80070005”.<br><br><br><br>Regsvr32 shell32.dll<br><br><br><br>Regsvr32 jscript.dll<br><br><br><br>Regsvr32 vbscript.dll<br><br><br><br> <br><br><br><br>Step 2:<br><br><br><br><br>Start the Windows<br>Installer service<br><br><br><br>a. Click Start, type Services.msc and press {ENTER}<br><br><br><br><br>b. Double-click Windows Installer<br><br><br><br><br>c. Set the Startup type of Windows Installer to Manual<br><br><br><br><br>d. Click Start to start the service. Note down the error message if any.<br><br><br><br><br>e. Click OK.<br><br><br><br> <br><br><br><br> <br><br><br><br>Method 2: Unregister and re-register the Windows Installer to do that follow the steps provided below.<br><br><br><br><br>Method did not work, see details below.<br><br><br><br> <br><br><br><br>a. Click Start, click Run, type MSIEXEC /UNREGISTER, and then click OK.<br>Even if you do this correctly, it may look like nothing occurs.<br><br><br><br><br>„…click run..“ is not fully understood. Entering click and then enter, leads to nothing.<br><br><br><br>So I typed “run MSIEXEC /UNREGISTER”, followed by ENTER<br><br><br><br> <br><br><br><br> <br><br><br><br>b. Click Start, click Run, type MSIEXEC /REGSERVER, and then click OK.<br>Even if you do this correctly, it may look like nothing occurs, or you may briefly see an hourglass. After you run this command, the operation is complete.<br><br><br><br><br>Similar procedure as above.<br><br><br><br>c. Try your Windows Installer-based application again.<br><br><br><br>Trying to execute the downloaded<br> program, results in the same message with Error 5,<br><br><br><br>as shown in the beginning.<br><br><br><br> <br><br><br><br>Restart the computer and check if the issue persists.<br><br><br><br> Trying<br> again  to execute the downloaded program, results in the same message with Error 5, as shown in the beginning<br><br><br><br> <br><br><br><br>Please post back if you are still experiencing the issue. I will be glad to provide you with the additional options available that you can utilize to get the issue resolved.<br><br><br><br> <br><br><br><br>Your next steps*<br><br><br><br>Did this reply answer your question? Then let the community know! <br><br>[Mark<br> this reply as your answer] <br><br> <br><br>Was this reply helpful? Give the author some kudos! <br><br>[Vote<br> as helpful] <br><br> <br><br>Want to unsubscribe from this thread? <br><br>. Click here to go to the thread <br><br>. In your original question, click "Edit" <br><br>. In the edit window, uncheck "Notify me when someone responds to this question" <br><br> <br><br><br><br><br><br>* You'll have to enter your password first, but when you get to the thread, you'll see your action has been automatically<br> recorded.
    * * *
    Please do not reply directly to this message. If you did not sign up or feel that you received this email in error<br>click<br> here to remove your email from Microsoft Community.<br> <br><br>Update email settings <br>Privacy Policy <br>Code of Conduct

    Was this answer helpful?

    0 comments No comments