Share via

Error 5 when trying to install programs

Anonymous
2017-02-15T16:39:15+00:00

First off I have read several posts on here and tried every solution I could find to no avail. 

When I try to install new programs on this computer running Windows 7 I get error 5, "Setup was unable to create the directory" C:/user/[username]/appdata/local/temp/...

I have all permissions to do this, even right clicking and trying to run the installer as admin does not work.

I have run system file checker, performance troubleshooter, I have updated windows and nothing works.

What can I do to fix this?

Windows for home | Previous Windows versions | Files, folders, and storage

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

19 answers

Sort by: Most helpful
  1. Anonymous
    2017-02-28T07:54:22+00:00

    Yes that's right "Administratörer", so what do I do now?

    Well, I do not really know what you were doing when you ran into the "Administratörer" problem.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-02-26T12:33:08+00:00

    Yes that's right "Administratörer", so what do I do now?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-02-26T11:07:10+00:00

    I followed your instructions and at the last one I got this message: (translated from Swedish) "There has been no mapping between account name and security-id."

    The group name "Administrators" is localised. In your case it could be "Administratorer". You can find out for sure by type this command at the Command Prompt:

    net localgroup

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-02-26T10:40:36+00:00

    So I finally got access to the computer again and I did as you said. First, pressing Ctrl+Shift+Enter did as I saw, nothing, and I could not left-click on anything, cmd just started, but at the top of it did say that it was running as administrator.

    I followed your instructions and at the last one I got this message: (translated from Swedish) "There has been no mapping between account name and security-id."

    What now?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2017-02-21T15:25:24+00:00

    It seems contradictory that you are allowed to create a file in the temp directory by manual means but not while installing new software. Maybe the following procedure will resolve the problem:

    1. Reboot into Safe Mode.
    2. Click the Start globe and type this:  cmd.exe
    3. Press Ctrl+Shift+Enter, then left-click Run as administrator. You will get a black screen.
    4. Type the following commands exactly and press Enter after each:

    cd  /d  "%temp%"

    cd  ..

    (yes, that's two full stops!)

    takeown  /f  temp  /r

    cacls  temp  /c  /t  /g  everyone:F

    (answer Yes when prompted) 5. Reboot normally and check if this solves the problem. If not, check on a different machine if the problem occurs there too.

    Was this answer helpful?

    0 comments No comments