Search This Blog

[Workaround] Unable to install Visual Studio in Windows 8.1: Access Denied


This post is a troubleshooting done on the issue of Visual Studio installation on Windows (Windows 8.1  in this case). Error Encountered: 0x80070005 - Access Denied

Visual Studio Express setup log shows:
    "Error 0x80070005: Failed to write run key value.
    Error 0x80070005: Failed to update resume mode.
    Error 0x80070005: Failed to begin registration session.
    Error 0x80070005: Failed to begin registration session in per-machine process.
    Error 0x80070005: Failed to register bundle."
Workaround:

Some one online pointed out the following workaround for this error in installing Visual Studio. But this did not work in my case.

a) Disable .NET 3.5 [didn't work]
Steps:
  • Go to Control Panel -> Programs and Features -> Windows Features
  • Disabled .NET 3.5 and enabled everything in .NET 4.0
  • Restart Computer
  • Installed Visual Studio
  • Restart Computer
b) Solving setup errors by using the SubInACL tool to repair file and registry permissions
 This also didn't work in my case.

c) Disabling Antivirus during installation [worked]
Watch the following demo video on how to disable McAfee Active Protection to successfully install Visual Studio on Windows.



After installing Visual Studio with McAfee Active Protection disabled, the installation completed successfully. The same is the case during uninstall - follow the same procedure. See post here: http://techubber.blogspot.com/2016/02/solved-unable-to-uninstall-visual-studio-express-from-windows.html


0x80070005 - Access Denied Info
The following is an excerpt from Microsoft on the
0x80070005 - Access Denied error.
This error occurs when Visual Studio cannot access one or more of the required installation files. This error may occur for any of the following reasons:
  • An outside process, such as an antivirus or antimalware application, has locked a Visual Studio installation file at the same time that Visual Studio is trying to install the file. To work around this issue, coordinate with your system administrator or other IT professional to make sure that Visual Studio files are not locked by these processes.
  • The user who is trying to install Visual Studio does not have administrator credentials on the computer. To successfully install Visual Studio, you must be logged in as an administrator.
  • Permissions on some registry hives can prevent Visual Studio from installing successfully. For more information, see the following MSDN blog article:

[Source: https://support.microsoft.com/en-us/kb/2872457]


Sponsored Links


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...