简体   繁体   English

使用团队资源管理器安装Visual Studio 2015 Enterprise Update 1时出错

[英]Error Installing Visual Studio 2015 Enterprise Update 1 with Team Explorer

I am having the same problem everyone else is when installing Visual Studio 2015 with Update 1. It is failing on the Team Explorer install and as far as I can tell it is being caused by the same error outlined in this question ( Multiple Errors Installing Visual Studio 2015 Community Edition ). 我在使用Update 1安装Visual Studio 2015时遇到了同样的问题。在Team Explorer安装中失败了,据我所知,这是由于此问题中列出的相同错误引起的( 多个错误安装Visual Studio 2015社区版 )。 I have tried the steps explained in the answers to that question, including the answer that is in Russian. 我已经尝试了这个问题的答案中解释的步骤,包括俄语的答案。 However, the installation is still failing at the same point. 但是,安装仍然在同一点上失败。 I am at my wits end now and out of ideas to try. 我现在在我的智慧结束,并且出于想法尝试。

Can anyone help? 有人可以帮忙吗?

Well I ended up opening a technical support case with microsoft to resolve my issue. 好吧,我最终打开了一个技术支持案例与微软解决我的问题。 They found the issue below in my log files: 他们在我的日志文件中发现了以下问题:

The actual problem 实际问题

During the VS 2015 install, there are couple of VSIX packages installed via custom action. 在VS 2015安装期间,通过自定义操作安装了几个VSIX软件包。 For example: TeamExplorer.vsix is executed via custom action and TeamExplorer.vsix package installs the Team Explorer binaries 例如:TeamExplorer.vsix通过自定义操作执行,TeamExplorer.vsix包安装Team Explorer二进制文件

we found that all the VSIX packages fail to install. 我们发现所有VSIX软件包都无法安装。 As a result, VS fails to install. 因此,VS无法安装。 According to the bundle log: 根据捆绑日志:

[2284:0D4C][2016-01-20T12:53:42]i301: Applying execute package: nugetvs, action: Install, path: C:\\ProgramData\\Package Cache{4BE72B6B-1E33-3D51-82CE-AE9702AA2664}v3.3.0.167\\packages\\WPT\\NuGetVisualStudio14.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"' [29A0:2B30][2016-01-20T12:54:11]i000: MUX: ExecuteError: Package (nugetvs) failed: Error Message Id: 1722 ErrorMessage: There is a problem with this Windows Installer package. [2284:0D4C] [2016-01-20T12:53:42] i301:应用执行包:nugetvs,action:Install,path:C:\\ ProgramData \\ Package Cache {4BE72B6B-1E33-3D51-82CE-AE9702AA2664} v3。 3.0.167 \\ packages \\ WPT \\ NuGetVisualStudio14.msi,参数:'ARPSYSTEMCOMPONENT =“1”MSIFASTINSTALL =“7”'[29A0:2B30] [2016-01-20T12:54:11] i000:MUX:ExecuteError:Package( nugetvs)失败:错误消息ID:1722 ErrorMessage:此Windows Installer程序包有问题。 A program run as part of the setup did not finish as expected. 作为设置的一部分运行的程序没有按预期完成。 Contact your support personnel or package vendor. 请联系您的支持人员或包装供应商。 [2284:0D4C][2016-01-20T12:54:12]e000: Error 0x80070643: Failed to install MSI package. [2284:0D4C] [2016-01-20T12:54:12] e000:错误0x80070643:无法安装MSI包。 [2284:0D4C][2016-01-20T12:54:12]e000: Error 0x80070643: Failed to execute MSI package. [2284:0D4C] [2016-01-20T12:54:12] e000:错误0x80070643:无法执行MSI包。 [29A0:2B30][2016-01-20T12:54:12]e000: Error 0x80070643: Failed to configure per-machine MSI package. [29A0:2B30] [2016-01-20T12:54:12] e000:错误0x80070643:无法配置每台机器的MSI包。

As per the VSIX logs, we found the below stack for most the of VSIX packages failure (for example VSIXInstaller_43a2c244-da76-4e26-b086-0341b7e77c1f.log ): 根据VSIX日志,我们发现大多数VSIX包失败的下面的堆栈(例如VSIXInstaller_43a2c244-da76-4e26-b086-0341b7e77c1f.log):

System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable`1 Microsoft.VisualStudio.ExtensionManager.IInstallableExtension.get_InvalidCertificateInformation()'. System.MissingMethodException:找不到方法:'System.Collections.Generic.IEnumerable`1 Microsoft.VisualStudio.ExtensionManager.IInstallableExtension.get_InvalidCertificateInformation()'。 at VSIXInstaller.App.LogSignatureDetails(IExtension extension) at VSIXInstaller.App.LogExtensionDetails(IExtension extension) at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported) at VSIXInstaller.App.OnStartup(StartupEventArgs e) 位于VSIXInstaller.App.OnStartup(StartupEventArgs e)的VSIXInstaller.App.LogitinInstall(Boolean isRepairSupported)的VSIXInstaller.App.LogExtensionDetails(IExtension扩展)的VSIXInstaller.App.LogSignatureDetails(IExtension扩展)

we found a similar Bug 177561:Slipstream build fails to patch (RTM) MSIs that are already installed by another (smaller) bundle and it's still in active state. 我们发现了一个类似的Bug 177561:Slipstream构建无法修补(RTM)MSI已经由另一个(较小的)捆绑安装,并且它仍然处于活动状态。 I'll check with my productive group and get back to you. 我会与我的高效团队核实并回复你。

As you can see, this is a known issue with Microsoft. 如您所见,这是Microsoft的一个已知问题。 I asked for alternate suggestions to get this installed and the support rep asked me to do a clean install with the non-update 1 version of VS Enterprise 2015 . 我要求安装备用建议,支持代表要求我使用非更新版本的VS Enterprise 2015进行全新安装。 I follow the instructions below to perform a clean install and it worked. 我按照下面的说明执行全新安装,它工作正常。

The actual solution 实际的解决方案

  1. Uninstall Visual Studio 2015 Enterprise from Programs and Features 从程序和功能中卸载Visual Studio 2015 Enterprise
    • I also uninstalled the 2015 C++ runtimes and Entity Framework 2015 libraries as well 我还卸载了2015 C ++运行时和Entity Framework 2015库
  2. Reboot machine if prompted 如果出现提示,请重启机器
  3. Rename or delete folders- 重命名或删除文件夹 -
    • C:\\Program Files (x86)\\Microsoft Visual Studio 14.0 C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0
    • C:\\Program Files\\Microsoft Visual Studio 14.0 C:\\ Program Files \\ Microsoft Visual Studio 14.0
    • C:\\users\\ user \\Documents\\Visual Studio 2015 C:\\ users \\ user \\ Documents \\ Visual Studio 2015
    • C:\\users\\ user \\AppData\\Roaming\\Microsoft\\VisualStudio\\14.0 C:\\ users \\ user \\ AppData \\ Roaming \\ Microsoft \\ VisualStudio \\ 14.0
    • C:\\users\\ user \\AppData\\Local\\Microsoft\\VisualStudio\\14.0 C:\\ users \\ user \\ AppData \\ Local \\ Microsoft \\ VisualStudio \\ 14.0
    • C:\\users\\ user \\AppData\\Local\\Microsoft\\VSCommon\\14.0 C:\\ users \\ user \\ AppData \\ Local \\ Microsoft \\ VSCommon \\ 14.0
  4. Go to the registry editor (start >> run >> regedit) and remove/rename the following registries- 转到注册表编辑器(开始>>运行>> regedit)并删除/重命名以下注册表 -
    • HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\14.0 HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Wow6432Node \\微软\\ VisualStudio的\\ 14.0
    • HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\14.0 HKEY_LOCAL_MACHINE \\ SOFTWARE \\微软\\ VisualStudio的\\ 14.0
    • HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\14.0 HKEY_CURRENT_USER \\软件\\微软\\ VisualStudio的\\ 14.0
    • HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\14.0_Config HKEY_CURRENT_USER \\软件\\微软\\ VisualStudio的\\ 14.0_Config
  5. close all your Visual Studio instances 关闭所有Visual Studio实例
  6. download Visual Studio 2015 Enterprise RTM not update 1 下载Visual Studio 2015 Enterprise RTM 不更新1
  7. Extract the .iso file by using an extraction tool, such as WinRar. 使用提取工具(如WinRar)提取.iso文件。
  8. Clear %temp% before going to start Visual Studio 2015 installation 在开始Visual Studio 2015安装之前清除%temp%
  9. Install Visual Studio 2015 using this extracted setup installer 使用此提取的安装程序安装程序安装Visual Studio 2015

And... tada, the installation was finally successful! 而且... tada,装置终于成功了! I hope this helps others that have a similar issue that isn't resolved by repairing the C++ runtimes alone. 我希望通过单独修复C ++运行时,可以帮助其他类似问题解决的问题。

Once RTM was installed successfully I was able to run the Update 1 installer and update successfully. 成功安装RTM后,我能够运行Update 1安装程序并成功更新。 Since then, I have also installed Update 2 with no issues. 从那时起,我也安装了Update 2,没有任何问题。

To make it easier, here is a batch file to do the clean up before installing Visual Studio 2015. 为简化起见,这里是一个批处理文件,用于在安装Visual Studio 2015之前进行清理。

@echo.
@echo This will remove all files, directories and registry keys about VISUAL STUDIO 2015
@echo.
@pause

rd "C:\Program Files (x86)\Microsoft Visual Studio 14.0" /S
rd "C:\Program Files\Microsoft Visual Studio 14.0" /S
rd "C:%homepath%\Documents\Visual Studio 2015" /S
rd "C:%homepath%\AppData\Roaming\Microsoft\VisualStudio\14.0" /S
rd "C:%homepath%\AppData\Local\Microsoft\VisualStudio\14.0" /S
rd "C:%homepath%\AppData\Local\Microsoft\VSCommon\14.0" /S

@echo.
@echo Removing Registry Keys
@pause

REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config

@echo.
@echo. FINISHED!
@pause

Just copy and paste it in a .bat files 只需将其复制并粘贴到.bat文件中即可

Success! 成功! Easy to try, anyway. 反正很容易尝试。

I had similar problems and tried re-installing several times, but no joy. 我有类似的问题,并尝试重新安装几次,但没有快乐。 I was looking at installing individual packages from the ISO - not happy at all. 我正在考虑从ISO安装个别包 - 根本不开心。

I finally got it to "install" by simply selecting "repair" rather than "uninstall" in control panel / programs. 我终于通过在控制面板/程序中选择“修复”而不是“卸载”来“安装”它。 It took quite a while to do the "repair" though. 虽然花了很长时间才进行“修复”。 In the end it is installed and working. 最后它安装并正常工作。

This may help some. 这可能有所帮助。

Yes, Brian. 是的,布赖恩。

I agree. 我同意。

The only solution for me was to completely remove EVERY program on my system that had "2015" in its program name (using the terrific Revo Uninstaller and running under "Quick Uninstall" after selecting each program in the listing. That does a "bulk" uninstall so you do not have to do it manually one after the other). 对我来说唯一的解决方案是完全删除我的系统中程序名称中包含“2015”的每个程序(使用了很棒的Revo卸载程序并在选择列表中的每个程序后在“快速卸载”下运行。这样做“批量”卸载,所以你不必一个接一个地手动执行)。 This too AGES. 这也很老了。 (Make sure each program relates to Visual Studio though...all mine did.) (确保每个程序都与Visual Studio有关......虽然我的所有程序都是。)

I then went through each step outlined in Brian Stewart's answer on Jan 28th at 19:00. 然后我在1月28日19:00完成了Brian Stewart的答案中概述的每个步骤。 I chose to install EVERYTHING in the Visual Studio installation (may as well just in case of need!) At the end of the install I found I had 77 programs now installed with the number "2015" in the program name. 我选择在Visual Studio安装中安装一切(也可以在需要时安装!)在安装结束时,我发现我现在安装了77个程序,程序名称中包含数字“2015”。

Note that after the completion of the Install from the downloaded "ISO" (run under "Admin" authority) there was one final re-run of the Install again from the ISO (using "Repair" this time) to finally fix a "NuGet" package failure. 请注意,从下载的“ISO”(在“管理”权限下运行)完成安装后,再次从ISO(使用“修复”)再次重新安装“安装”以最终修复“NuGet” “包装失败。 After that all was 100% correct. 之后,所有都是100%正确。 (With no need to re-install the C++ libraries) (无需重新安装C ++库)

I then performed a shutdown and restart and tested Visual Studio, loading a project I had previously created. 然后我执行了关闭并重新启动并测试了Visual Studio,加载了我之前创建的项目。 (If you do not have one, then just try creating a project). (如果您没有,那么只需尝试创建一个项目)。

You may get errors associated with settings files missing, such as: Page '3185ed96-1cbd-4381-a439-636973542e50' not found. 您可能会收到与缺少设置文件相关的错误,例如:找不到页面'3185ed96-1cbd-4381-a439-636973542e50'。

You must then exit Visual Studio and perform these commands from a CMD prompt (elevated to Administrator) in order. 然后,您必须退出Visual Studio并按顺序从CMD提示符(提升为管理员)执行这些命令。 After each Visual Objects IDE opens up, close it and run the next command. 打开每个Visual Objects IDE后,关闭它并运行下一个命令。

1.devenv.exe /safemode 1.devenv.exe / safemode

2.devenv.exe /resetskippkgs 2.devenv.exe / resetskippkgs

3.devenv.exe /installvstemplates 3.devenv.exe / installvstemplates

4.devenv.exe /resetsettings 4.devenv.exe / resetsettings

5.devenv.exe /resetuserdata 5.devenv.exe / resetuserdata

Then perform a final shutdown/start-up and everything should work fine. 然后执行最终关机/启动,一切都应该正常。

So after all this, I finally performed an "image" backup of my whole system so that if needs be I can at least re-install my system with Visual Studio correctly installed. 毕竟,在这之后,我终于对整个系统进行了“映像”备份,这样如果需要,我至少可以在正确安装Visual Studio的情况下重新安装我的系统。

Brickbats to Microsoft for making installation of Visual Studio so painful. Brickbats向微软公司安装Visual Studio如此痛苦。 After years of paying good dollars for this great programming environment I was a little annoyed that now it is free to everyone, but I guess Microsoft is making us pay in some way with our patience. 经过多年为这个优秀的编程环境支付了美元,我有点恼火,现在它对每个人都是免费的,但我想微软正在以耐心的方式让我们以某种方式付钱。 LOL :-) 大声笑 :-)

It was a very long and tedious procedure, but everything now installed without error. 这是一个非常漫长而乏味的过程,但现在安装的所有内容都没有错误。

Thanks so much to Brian Stewart for pointing us all in the right direction. 非常感谢Brian Stewart指出我们所有人都朝着正确的方向前进。

After you've done what Brian Swart has outlined , here's the link to the VS 2015 Community RTM edition iso. 完成Brian Swart概述之后 ,这里是VS 2015社区RTM版iso的链接。

http://download.microsoft.com/download/0/B/C/0BC321A4-013F-479C-84E6-4A2F90B11269/vs2015.com_enu.iso http://download.microsoft.com/download/0/B/C/0BC321A4-013F-479C-84E6-4A2F90B11269/vs2015.com_enu.iso

(I would put this in a comment after quetzalcoatl's Mar 14 comment but I can't comment without 50 reputation. And this entry is admittedly a stupid "answer", which means that I will probably get downvoted and will get no closer to being able to put appropriate text in a comment instead of in answer. Ridiculous system they've got here.) (我会在quetzalcoatl的3月14日评论之后发表评论,但如果没有50个声誉我就不能发表评论。而且这个条目无疑是一个愚蠢的“答案”,这意味着我可能会被投票,并且不会接近能够将适当的文本放在评论而不是答案中。他们来到这里的荒谬系统。)

I had the same "Team Explorer" error installing Visual Studio 2015 Enterprise Update 2 on a Win 10 (64b Enterprise) PC. 我在Win 10(64b企业版)PC上安装Visual Studio 2015 Enterprise Update 2时遇到了相同的“团队资源管理器”错误。 Tried a Repair install a few times which did not work. 尝试修复安装几次,但没有用。 What worked: - uninstalled Visual Studio and all the instances of C++ as well - rebooted and ran the batch file mentioned above - did a custom install. 什么工作: - 卸载Visual Studio和C ++的所有实例 - 重新启动并运行上面提到的批处理文件 - 做了自定义安装。 Only the Web Development Tools was installed. 仅安装了Web开发工具。 It succeeded and opened fine. 它成功并且开得很好。 - did a Modify install and added the SQL data tools. - 做了一个Modify安装并添加了SQL数据工具。 No errors. 没有错误。 so far so good .. 到现在为止还挺好 ..

  1. Before doing the reinstalling stage: 在重新安装阶段之前:

    A.Disable anti-virus or anti-spyware software. A.Disable反病毒或反间谍软件。

    B. Clear this folder: %windir%\\Temp B.清除此文件夹: %windir%\\ Temp

    and not only the %Temp% folder. 而不仅仅是%Temp%文件夹。

  2. Run the installer as administrator. 以管理员身份运行安装程序

  3. Maybe I am wrong? 也许我错了? but I have read here that we better also delete this folder: **C:\\ProgramData\\Microsoft\\Crypto\\RSA\\S-1-5-18** before reinstall. 但我在这里读到,我们最好还删除此文件夹:** C:\\ ProgramData \\ Microsoft \\ Crypto \\ RSA \\ S-1-5-18 **重新安装之前。

After days of torment, here's the answer: Delete or rename the following folder C:\\ProgramData\\Microsoft\\Crypto\\RSA\\S-1-5-18\\ to something like \\backup-S-1-5-18\\ ... Windows will re-create the folder with appropriate permissions and the installation will continue without error. 经过几天的折磨,这里的答案是:将以下文件夹C:\\ ProgramData \\ Microsoft \\ Crypto \\ RSA \\ S-1-5-18 \\删除或重命名为\\ backup-S-1-5-18 \\ .. .Windows将重新创建具有适当权限的文件夹,安装将继续,不会出错。 Cheers 干杯

What do you say? 你说什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM