0x80070005

Fix '0x80070005 Access Denied' on Windows Game Installs

Software – Games & Drivers Intermediate 👁 21 views 📅 May 29, 2026

This error kills game installs. Can't write to install folder. Usually a permissions or antivirus snag. Fix it in steps.

First Thing to Try (30 seconds)

Kill your antivirus. Not pause it. Fully disable it. I've watched Bitdefender, Norton, and even Windows Defender's real-time protection block game installers from writing to Program Files. Reboot after disabling, then try the install again. If that fixes it, add an exception for your game's install folder.

Still broken? Move on.

The Moderate Fix: Run as Admin & Check Folder Permissions (5 minutes)

Run the Installer as Admin

Right-click your installer .exe, pick Run as administrator. UAC should pop up—click Yes. This bypasses most user-profile permission issues. But it's not the full fix. 0x80070005 often means the destination folder itself has jacked-up ownership.

Take Ownership of the Install Folder

Open an admin Command Prompt (right-click Start, pick Command Prompt (Admin) or Terminal (Admin)). Say your game tries to install to C:\Program Files\YourGame. Run these:

takeown /f "C:\Program Files\YourGame" /r /d y
icacls "C:\Program Files\YourGame" /grant Administrators:F /t

First command grabs ownership recursively. Second one gives Administrators full control. This squashes most permission-related access denied errors. If the folder doesn't exist yet, create a dummy one first with mkdir "C:\Program Files\YourGame".

Try the install again. Still seeing the error? Let's go deeper.

The Advanced Fix: Registry Key Permissions & Windows Store Reset (15+ minutes)

Check Registry Key Permissions

This one's a sneaky culprit. The error can come from locked-down registry keys under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer or HKEY_CLASSES_ROOT\Installer\Products. Open regedit (type regedit in Run), navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components

Right-click Components, pick Permissions. Make sure SYSTEM and Administrators have Full Control. If they don't, click Advanced, change owner to Administrators (check 'Replace owner on subcontainers and objects'), then grant full control. Be careful—messing up registry permissions can break other installs. But I've fixed dozens of 0x80070005 errors this way.

Reset the Windows Store Cache (if it's a Store game)

If you're installing from the Microsoft Store, a corrupted cache often triggers 0x80070005. Press Win + R, type wsreset.exe, hit Enter. A blank CMD window pops up for a few seconds, then the Store opens. Try the install again.

Re-register Windows Installer Service

Sometimes the Windows Installer service itself gets boned. Run these in an admin command prompt:

msiexec /unregister
msiexec /regserver

Then restart the Windows Installer service from services.msc (set it to Automatic and start it).

Still Stuck? Nuke the Install Folder & AppData

Delete the game's install folder completely (use Unlocker or boot into Safe Mode if it's locked). Also clear %appdata%\{game publisher} and %localappdata%\{game publisher} folders. Some games cache permission data there. Reboot, reinstall from scratch. That's my last-resort move, and it's worked when nothing else did.

One more thing: If you're on Windows 11 22H2, there's a known bug with the 'Controlled Folder Access' feature in Defender. Turn it off temporarily: Windows Security > Virus & threat protection > Manage ransomware protection > Off. Goodbye 0x80070005.

Was this solution helpful?