Using Windows 10, version 1607.
The issue is in the title, no matter which installator out of the three available I use, or which package out of the three I try to install, or which additonial modules I try to add, the installation always fails at the "Microsoft.VisualStudio.SLNX.VSIX" step. Running the installer as an admin or disabling Antivirus doesn't help either.
Added a solution by Antti Heinonen · Dec 16, 2016 at 11:55 PM
I decompiled the VSIXInstaller.exe to see what's going on. In one of the method in the stack trace it uses "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\AppEnv\\" + vsVersion + "\\Apps" registery path. By using regedit.exe I found some references to an non-existent Visual Studio installation (Atmel Studio) in "HKEY_LOCAL_MACHINE\\Software\\WOW6432Node\\Microsoft\\AppEnv\\VS10\\Apps". I removed the reference and the VS 2017 installation succeeded. Remember also check the WOW6432Node under Software if you are running 64-bit OS.
edit: and my VSIXInstaller stack trace was:
System.TypeInitializationException: The type initializer for 'VSIXInstaller.SupportedSKUs' threw an exception. ---> System.ArgumentException: The argument 'rootPath' cannot be an empty string. at VSIXInstaller.Validate.IsNotNullAndNotEmpty(String argument, String argName) at VSIXInstaller.SettingsStore..ctor(RegistryKey rootKey, String rootPath) at VSIXInstaller.SettingsManager.GetReadOnlySettingsStore(SettingsScope scope) at VSIXInstaller.SupportedSKUs.AddInstalledIsolatedShells(Version vsVersion) at VSIXInstaller.SupportedSKUs..cctor()
Added a solution by Christopher Haws · Dec 17, 2016 at 08:06 PM
I was having this issue with NuGet.Core which was failing to install.
Package 'Microsoft.VisualStudio.NuGet.Core,version=15.0.26004.1' failed to install. Command executed: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe" /q /s /admin /appidinstallpath:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe" /logFile:"C:\Users\chaws\AppData\Local\Temp\dd_setup_20161217102407_001_Microsoft.VisualStudio.NuGet.Core.log" /skuName:Enterprise /skuVersion:15.0.26014.0 /appidname:displayName "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.NuGet.Core,version=15.0.26004.1\NuGet.Tools.vsix", Return code: 2003, Details: This VSIX extension is not installable on any currently installed products.
This error references a log file, so I took a look at that and noticed that it was throwing the following error:
2016-12-17 10:24:24 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products. at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable`1& skuData) at VSIXInstaller.App.Initialize(Boolean isRepairSupported) at VSIXInstaller.App.OnStartup(StartupEventArgs e)
After completely uninstalling VS2017, I noticed that there were some left over packages in this folder:
I renamed the Packages folder to Packages-Backup and ran the installer again and everything installed without any issues! I have no idea if this broke my VS2015 install, but it did allow me to continue with the VS2017 install, and I made a backup of the folder, so if 2015 needs a package it can't find anymore, I can merge the folders back.
Here are the logs from my failed install attempts:
Installation don't advance 83%
Cannot change product via VS Installer
Setup Operation Failed