本文介绍了安装和卸载失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好,我下载了安装在F-drive中的VS 2015社区版,即我选择了该驱动器(分区)中的安装目录。但是,其余文件安装在系统C盘(磁盘分区) - Program Files(x86)中。在的某些时候,安装过程停止了 - 可能是因为互联网连接不畅。我决定重新安装。 C驱动器已满。我手动删除了F-drive中的Visual Studio,将其格式化,然后将其(缩小)连接到C盘(通过磁盘管理实用程序)以增加C盘的大小。然后我尝试重新安装Visual Studio。但是,这次它没有询问安装位置,即安装目录。然后我决定在某个时候卸载它。但在某些时候,安装来到错误消息,说VS需要代理。我从Microsoft网站下载了代理安装文件 - 但安装的第一页是安装它的路径(目录),显示旧F驱动器中的路径,即使用C驱动器收缩的 ,此路径被阻止更改 - 即文本字段被阻止且无法更改。Hello, i downloaded VS 2015 Community version, installed in F-drive, that is I have chosen the installation directory in that drive (partition). However, the rest of the files were installed in the system C-drive (disk-partition) - Program Files (x86). At some point the installation process stoped - may be because of the poor internet connection. i decided to make re-installation. The C-drive was full. i deleted the Visual Studio in F-drive by hand, formated it, and then attached it (shrinking) to C-drive (via Disks Management utility) to increase the size of C-drive. Then i tried to re-install Visual Studio. however, this time it did not ask where to install it, that is installation directory. then i decided at some point to uninstall it. but at some point unstallation came to the error message saying that VS requires Agents. i downloaded Agents installation file from Microsoft web-site - however the first page of the installation was the path (directory) where to install it, showing the path in the old F-drive, that was shrinked with C-drive, and this path was blocked to change it - that is that text field was blocked and could not be changed. PS:我也手动删除了其余的文件,例如SQLServer目录等。P.S.: i also deleted by hand the rest filed, e.g. SQLServer directories etc.如果有人在论坛上帮助我从头开始重新安装Visual Studio(开始),即显示和编辑路径,我将不胜感激安装目录 - 包括VS和代理。谢谢。i would appreciate if someone in the forum could help me to solve the problem with re-installation Visual studio from the scratch (beginning), that is showing and editing the path of the installation directory - both for VS and Agents. Thank you.推荐答案感谢您在MSDN论坛上发帖。Thank you for posting in MSDN forum.从您的描述中,原因是在卸载过程中,系统检测到错误的驱动器路径。From your description, the cause is that during the uninstallation, system detect the wrong drive path.您可以尝试使用powershell命令卸载剩余的VS,步骤如下:You could try the powershell command to uninstall the remaining VS, here are steps: 1。下载并安装 http://psmsi.codeplex.com 。这些是通用的PowerShell cmdlet1. Download and install http://psmsi.codeplex.com. These are general-purpose PowerShell cmdlets 2。打开提升的PowerShell命令提示符并运行以下命令以发现哪些产品已安装密钥共享组件: get-msicomponentinfo'{777CBCAC-12AB -4A57-A753-4A7D23B484D3}'| get-msiproductinfo2. Open an elevated PowerShell command prompt and run the following to discover which products have installed the key shared component:get-msicomponentinfo '{777CBCAC-12AB-4A57-A753-4A7D23B484D3}' | get-msiproductinfo 3。如果您可以卸载所有列出的产品(特别是考虑到您可能接下来要安装RTM),请运行以下命令: get-msicomponentinfo'{777CBCAC-12AB-4A57-A753-4A7D23B484D3}'| get-msiproductinfo | uninstall-msiproduct -properties IGNOREDEPENDENCIES = ALL3. If you’re fine with uninstalling all the listed products (especially given that you’re probably going to install RTM next), run the following:get-msicomponentinfo '{777CBCAC-12AB-4A57-A753-4A7D23B484D3}' | get-msiproductinfo | uninstall-msiproduct -properties IGNOREDEPENDENCIES=ALL参考: https: //blogs.msdn.microsoft.com/heaths/2015/07/14/how-to-install-visual-studio-to-another-directory-when-a-pre-release-is-installed/然后运行 Visual Studio卸载程序   到干净地卸载整个VS.Then run theVisual Studio Uninstaller to uninstall the Whole VS cleanly.之后以前的VS完全卸载,你可以试试 下载一个  VS 2015更新3 ISO来自: https://www.visualstudio.com/downloads/  。After the previous VS uninstalls completely, you could try to download a  VS 2015 With Update 3 ISO from:https://www.visualstudio.com/downloads/ .当您重新安装VS时,我建议您在系统驱动器上设置找到的驱动器,  它需要系统驱动器上的空间,并且需要安装系统组件。When you re-install VS, I suggest you set the located drive on system drive,  it requires space on the System drive and needs to install system components.参考: https: //www.reddit.com/r/csharp/comments/2agecc/why_must_visual_studio_be_installed_on_my_system/最诚挚的问候, 这篇关于安装和卸载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-29 01:10