Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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). 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?

like image 442
Brian Swart Avatar asked Jan 20 '16 00:01

Brian Swart


People also ask

Can I install Visual Studio 2015 and 2019 together?

You can install Visual Studio versions side-by-side. However, Microsoft is recommending to install the old version first before you install the later version.


2 Answers

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. For example: TeamExplorer.vsix is executed via custom action and TeamExplorer.vsix package installs the Team Explorer binaries

we found that all the VSIX packages fail to install. As a result, VS fails to install. 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. 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: Error 0x80070643: Failed to execute MSI package. [29A0:2B30][2016-01-20T12:54:12]e000: Error 0x80070643: Failed to configure per-machine MSI package.

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 ):

System.MissingMethodException: Method not found: '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)

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. I’ll check with my productive group and get back to you.

As you can see, this is a known issue with 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. 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
    • I also uninstalled the 2015 C++ runtimes and Entity Framework 2015 libraries as well
  2. Reboot machine if prompted
  3. Rename or delete folders-
    • C:\Program Files (x86)\Microsoft Visual Studio 14.0
    • C:\Program Files\Microsoft Visual Studio 14.0
    • C:\users\user\Documents\Visual Studio 2015
    • C:\users\user\AppData\Roaming\Microsoft\VisualStudio\14.0
    • C:\users\user\AppData\Local\Microsoft\VisualStudio\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-
    • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0
    • HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
    • HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config
  5. close all your Visual Studio instances
  6. download Visual Studio 2015 Enterprise RTM not update 1
  7. Extract the .iso file by using an extraction tool, such as WinRar.
  8. Clear %temp% before going to start Visual Studio 2015 installation
  9. Install Visual Studio 2015 using this extracted setup installer

And... tada, the installation was finally successful! I hope this helps others that have a similar issue that isn't resolved by repairing the C++ runtimes alone.

Once RTM was installed successfully I was able to run the Update 1 installer and update successfully. Since then, I have also installed Update 2 with no issues.

like image 129
Brian Swart Avatar answered Oct 11 '22 20:10

Brian Swart


To make it easier, here is a batch file to do the clean up before installing 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

like image 35
Massimiliano Uguccioni Avatar answered Oct 11 '22 19:10

Massimiliano Uguccioni