我在Windows 7上安装旧的VS 2015时出现问题,我无法修复/卸载它, 迁移我的操作系统后,软件包似乎已损坏。
我手动卸载了错误日志中报告的所有msi文件,并且可以执行新的 从ISO文件安装。但安装后我仍然无法打开Visual Studio,修复或 卸载失败,因为无法加载某些组件。
我将问题追溯到位于的vs_communitycore.msi C:\ ProgramData \ Package Cache {DE064F60-6522-3310-9665-B5E3E78B3638} v14.0.23107 \ packages \ communitycore \ Setup \ 这个包也包含在ISO文件中,它给出了相同的错误信息,我已经检查过了 使用fciv.exe的ISO完整性。
如果我尝试打开vs_communitycore.msi文件,它会给我一个错误: “无法打开此修补程序包。验证修补程序包是否存在且可以 访问它,......“
这似乎与vs安装日志中报告的错误相同(aka 错误代码1619 ):
[1208:0CA0] [2018-07-26T01:45:03] i000:MUX:设置结果:返回 代码= -2147023277(0x80070653),错误消息=,结果详细信息=, Vital = True,包操作=卸载,包ID = vs_communitycore
我不认为问题是安装损坏。它看起来像是因为当我尝试打开一些MSI文件时,执行失败,错误1619,就像MSI不是有效的那样;但我已多次下载它们并检查ISO完整性。如果我尝试直接从ISO打开相同的文件,则会出现错误。
这很奇怪,为什么新下载的MSI会因1619而失败?
我跑了 visualstudiouninstaller 工具,它第一次删除了一堆东西。但看起来有些MSI无法卸载,现在每次运行它都会给我相同的输出(见下文)。
C:\Users\gustavo\Desktop\vs\TotalUninstaller>Setup.ForcedUninstall.exe
The following bundles were detected on your system:
(Name: Microsoft Visual Studio Community 2015 with Updates, Version: 14.0.25420.1, BundleId: 79b486b9-c5f0-4096-a00c-8351f59587c2)
WARNING: This executable is designed to cleanup/scorch all Preview/RC/RTM releases of Visual Studio 2013, Visual Studio 2015 and Visual Studio vNext.
It should be used as the last resort to clean up the user's system before resorting to reimaging the machine.
Would you like to continue? [Y/N]
y
Uninstalling: C:\ProgramData\Package Cache\{79b486b9-c5f0-4096-a00c-8351f59587c2}\vs_community.exe
Bundle: Microsoft Visual Studio Community 2015 with Updates has been uninstalled with exit code: 1603.
Normal Visual Studio Uninstall completed.
Searching for stale MSIs and clean up stale MSIs.
2 stale MSIs found. Uninstalling them.
Uninstalled MS Build Tools 14.0 (x86) with exit code: 1603. 1/2
Uninstalled MS Build Tools Language Resources 14.0 (x86) with exit code: 1603. 0/2
Deleting: C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller
Deleting registry: SOFTWARE\Microsoft\VisualStudio\12.0
Deleting registry: SOFTWARE\Microsoft\VisualStudio\14.0
Deleting registry: SOFTWARE\Microsoft\VisualStudio\15.0
Deleting registry: SOFTWARE\Microsoft\VisualStudio\12.0_Config
Deleting registry: SOFTWARE\Microsoft\VisualStudio\14.0_Config
Deleting registry: SOFTWARE\Microsoft\VisualStudio\15.0_Config
Deleting registry: SOFTWARE\Microsoft\DevDiv\vs\Servicing\12.0
Deleting registry: SOFTWARE\Microsoft\DevDiv\vs\Servicing\14.0
Deleting registry: SOFTWARE\Microsoft\DevDiv\vs\Servicing\15.0
这是我正在使用的ISO文件的链接(Visual Studio社区更新3) https://go.microsoft.com/fwlink/?LinkId=615448&clcid=0x409
这是卸载错误日志: https://paste.drhack.net/?7de0c7b7befc1b2d#Rd4UHKD5N0qSRbYqt4R1T1nErNxeKsbV1rrAMUru+TU=