Locked File or Folder with Visual Studio Installer

  • Thread starter Thread starter Wally9633
  • Start date Start date
W

Wally9633

Guest
I'm having a problem in getting the VS 2017 bootstrap (installer)
to install on Windows 10.

HOW IRONIC!

Actually, I am trying to re-install it after an update failure.

After waiting until the progress bar almost reaches the end,
I get the following message:

---------------------------------------------------------------------

Visual Studio

Unable to install the files to target location. Error: The folder
'c:\Program Files (x86)\Microsoft Visual Studio\Installer' or a file
within it is locked by another program. Close any applications that
might be using it and try again.

Close
---------------------------------------------------------------------


I checked the folder with "IOBit Unlocker" and nothing is locking it.

I tried rebooting, then immediately running the installer.

I got the same error.

I read somewhere that I should delete the Installer folder and try again.


I opened PowerShell in Administrator mode, and tried the following:

---------------------------------------------------------------------

remove-item .\Installer -force -recurse

Get-ChildItem -Path $Destination -Recurse | Remove-Item -force -recurse

Get-ChildItem -Path $Destination -Recurse -Force | Remove-Item -force -recurse

$fso = New-Object -ComObject scripting.filesystemobject
$fso.DeleteFolder("C:\Program Files (x86)\Microsoft Visual Studio\Installer")
---------------------------------------------------------------------

In every case I got "Access to the path is denied" (or something similar).

How do I delete that F'ing folder, or get VS bootstrapper to install?


OH BTW ...

I tried to report a problem using Visual Studio 2017:

Help > Send Feedback > Report a problem

When I did that ... NOTHING HAPPENED!!!

This is seriously FUBAR!

THANK YOU!



Wally

Continue reading...
 
Back
Top