使用Visual Studio安装程序锁定文件或文件夹 [英] Locked File or Folder with Visual Studio Installer

查看:667
本文介绍了使用Visual Studio安装程序锁定文件或文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了在Windows 10上安装VS 2017引导程序(安装程序)

的问题。
$


如何使用IRONIC!
b
$ b b实际上,我试图在更新失败后重新安装它。



在等到进度条几乎到达结束之后,b
我收到以下消息:
$


-------- -------------------------------------------------- -----------
$


Visual Studio



无法安装文件目标位置。错误:文件夹

'c:\Program Files(x86)\ Microsoft Visual Studio\Installer'或其中的文件

被另一个程序锁定。关闭任何以
可能正在使用它的应用程序并重试。



关闭

--------------------------------------- ------------------------------
$




我用"IOBit Unlocker"检查了该文件夹。什么都没有锁定它。



我尝试重新启动,然后立即运行安装程序。



我得到了相同的错误。



我在某处读到了我应该删除Installer文件夹并再试一次。





我在管理员模式下打开PowerShell,并尝试以下操作:



-------------- -------------------------------------------------- -----
$


删除项目  。\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")

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



在每种情况下我都得到"拒绝访问路径" (或类似的东西)。



如何删除该F'ing文件夹,或安装VS bootstrapper?





OH BTW ...



我尝试使用Visual Studio 2017报告问题:



帮助>发送反馈>报告问题



当我这样做时......没有发生!!! zh


这是认真的FUBAR!
$


谢谢!

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

推荐答案

嗨Wally,

Hi Wally,

感谢您在MSDN论坛上发帖。

Thank you for posting in MSDN forum.

>>我尝试使用Visual Studio 2017报告问题:当我这样做时......没有发生! !!

通过
报告问题
 ,您可以在
开发者社区
门户。

After reporting a problem via the Report a Problem , you can track your feedback in the Developer Community portal.

回到这个问题,如果你需要重新安装,请取消现有的VS 2017安装失败,如下所示:

Back to this issue, if you need the re-installation, pleas remove the existing VS 2017 that install failed before as below:

1。转到控制面板 - 程序和功能,如果有"Microsoft Visual Studio 2017",右键单击它并选择"卸载"

1. Go to Control Panel—Programs and Features, if there has ‘Microsoft Visual Studio 2017’, right click it and choose ‘Uninstall’

2。尝试删除以下已安装的文件夹:(您可以在进行任何修改之前备份这些文件夹,以防我们需要回滚)

2. Try to delete the following installed folders: (you can back up those folders before any modification, in case we need to roll back)

3. 转到文件夹: %ProgramData%\ Microsoft /\\VisualStudio
并删除'套餐'文件夹和'设置'
文件夹,如果有的话。

3. Go to the folder: %ProgramData%\Microsoft\VisualStudio and delete the ‘Packages’ folder and ‘Setup’ folder if there has.

4。转到Visual Studio安装文件夹(通常在 %ProgramFiles(x86)%\ Microsoft Visual Studio 下)并删除文件夹'2017'

4. Go to the Visual Studio installation folder (normally under %ProgramFiles(x86)%\Microsoft Visual Studio) and delete the folder ‘2017’

5。之后,确保Windows更新是最新的,清理%temp%文件夹并暂时禁用任何防病毒软件。

5. After that, make sure windows update is up-to-date, clean up the %temp% folder and temporarily disable any antivirus software.

6。重新启动计算机并从
下载最新的VS 2017 RTM安装程序下载 页

6. Reboot the computer and download the newest VS 2017 RTM installer from download page

再次以管理员身份运行安装程序。

run the installer as administrator again.

最好的问候,


这篇关于使用Visual Studio安装程序锁定文件或文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆