Cannot install Visual Studio 2017 due to Microsoft.VisualStudio.Setup.Configuration package install failure - visual-studio

I cannot install the above mentioned package, which is requied to proceed the Visual Studio install. I checked on Microsoft's forums for solution but no luck.
I unchecked read-only checkbox in the root of the directory, also manually recreated x64 and x86 folders. The permissions on the users are as they should be also the cleaner app didn't help. I am using the 1809 Windows edition. The current VS version is 15.9.4.
The log is the following:
Something went wrong with the install.
You can troubleshoot the package failures by:
1. Search for solutions using the search URL below for each package failure
2. Modify your selections for the affected workloads or components and then retry the installation
3. Remove the product from your machine and then install again
If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.
================================================================================
Package 'Microsoft.VisualStudio.Setup.Configuration,version=1.18.21.37008' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Setup.Configuration;PackageAction=Install;ReturnCode=1317
Details
MSI: C:\TempTmp\Nova mapa\Microsoft.VisualStudio.Setup.Configuration,version=1.18.21.37008\Microsoft.VisualStudio.Setup.Configuration.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 ALLUSERS="1" MSIFASTINSTALL="7" 
Return code: 1603
Return code details: Fatal error during installation.
Message Id: 1317
Message Details: An error occurred while attempting to create the directory: C:\ProgramData\Microsoft\VisualStudio\Setup
Log
C:\TempTmp\dd_setup_20181215215511_001_Microsoft.VisualStudio.Setup.Configuration.log
Impacted workloads
Game development with Unity (Microsoft.VisualStudio.Workload.ManagedGame,version=15.0.27005.2)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.9.28307.102)
Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.27205.0)
Impacted components
.NET Native (Microsoft.Component.NetFX.Native,version=15.0.26208.0)
.NET Native and .NET Standard (Microsoft.VisualStudio.ComponentGroup.UWP.NetCoreAndStandard,version=15.8.27906.1)
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.6.27309.0)
.NET profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=15.8.27729.1)
ASP.NET and web development (Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions,version=15.8.27825.0)
Blend for Visual Studio (Microsoft.ComponentGroup.Blend,version=15.6.27406.0)
C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=15.8.27729.1)
ClickOnce Publishing (Microsoft.Component.ClickOnce,version=15.8.27825.0)
Data sources and service references (Microsoft.VisualStudio.Component.VisualStudioData,version=15.6.27406.0)
Developer Analytics tools (Microsoft.VisualStudio.Component.AppInsights.Tools,version=15.8.27825.0)
Image and 3D model editors (Microsoft.VisualStudio.Component.Graphics,version=15.6.27406.0)
JavaScript and TypeScript language support (Microsoft.VisualStudio.Component.JavaScript.TypeScript,version=15.9.28125.51)
JavaScript diagnostics (Microsoft.VisualStudio.Component.JavaScript.Diagnostics,version=15.8.27729.1)
NuGet package manager (Microsoft.VisualStudio.Component.NuGet,version=15.9.28016.0)
Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.9.28119.51)
Universal Windows Platform tools for Cordova (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.9.28307.102)
Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.9.28307.102)
Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=15.8.27729.1)
Visual Studio Tools for Unity (Microsoft.VisualStudio.Component.Unity,version=15.7.27617.1)
WebSocket4Net (Component.WebSocket,version=15.0.26606.0)
Update 1.1.2019
I contacted the Microsoft support over chat, but didn't get any further. I was told to try to install an earlier release. I ended up formatting my SSD and installing all the software all over. It luckily succeeded. I am providing a vslogs overview of the error, before the format.

Related

Cannot install Microsoft.VisualStudio.Community.Msi

I have downloaded visual studio 2017 15.7.6 with these following workloads
.Net desktop development.
ASP.NET and web development.
Mobile development with .Net
After installing everything I get this warning "setup complete with warning" and then i clicked "View problem". The problem then shows "Cannot install Microsoft.Visualstudio.Community.Msi".
This is the full error log,
Something went wrong with the install.
You can troubleshoot the package failures by:
Search for solutions using the search URL below for each package failure
Modify your selections for the affected workloads or components and then retry the installation
Remove the product from your machine and then install again
If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.
================================================================================
Package 'Microsoft.VisualStudio.Community.Msi,version=15.7.27617.1' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Community.Msi;PackageAction=Install;ReturnCode=1406
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Community.Msi,version=15.7.27617.1\Microsoft.VisualStudio.Community.Msi.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" VSEXTUI="1" PIDKEY="NGKBDRWKQFTT82MTRMPKRM6XM" VS7.3643236F_FC70_11D3_A536_0090278A1BB8="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community" FEEDBACKOPTIN="1"
Return code: 1603
Return code details: Fatal error during installation.
Message Id: 1406
Message Details: Could not write value PrimaryInteropAssemblyName to key \Software\Classes\TypeLib{7C0FFAB0-CD84-11D0-949A-00A0C91110ED}\1.0. Verify that you have sufficient access to that key, or contact your support personnel.
Log
C:\Users\MysterHyde\AppData\Local\Temp\dd_setup_20200309103712_053_Microsoft.VisualStudio.Community.Msi.log
Impacted workloads
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.7.27625.0)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.7.27625.0)
Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.7.27625.0)
Impacted components
.NET Core 2.0 development tools (Microsoft.NetCore.ComponentGroup.DevelopmentTools,version=15.7.27617.1)
.NET Core 2.0 development tools (Microsoft.NetCore.ComponentGroup.Web,version=15.7.27625.0)
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.7.27625.0)
.NET Framework 4.6.1 development tools (Microsoft.Net.ComponentGroup.DevelopmentPrerequisites,version=15.7.27520.0)
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.6.27309.0)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.7.27520.0)
ASP.NET and web development tools prerequisites (Microsoft.VisualStudio.ComponentGroup.Web,version=15.7.27625.0)
Blend for Visual Studio (Microsoft.ComponentGroup.Blend,version=15.6.27406.0)
C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=15.0.27205.0)
ClickOnce Publishing (Microsoft.Component.ClickOnce,version=15.7.27520.0)
Cloud Explorer (Microsoft.VisualStudio.Component.CloudExplorer,version=15.7.27520.0)
Cloud tools for web development (Microsoft.VisualStudio.ComponentGroup.Web.CloudTools,version=15.7.27520.0)
Connectivity and publishing tools (Microsoft.VisualStudio.Component.Common.Azure.Tools,version=1.10.50912.1)
Data sources and service references (Microsoft.VisualStudio.Component.VisualStudioData,version=15.6.27406.0)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26621.2)
Developer Analytics tools (Microsoft.VisualStudio.Component.AppInsights.Tools,version=15.7.27617.1)
Entity Framework 6 tools (Microsoft.VisualStudio.Component.EntityFramework,version=15.6.27406.0)
F# language support (Microsoft.VisualStudio.Component.FSharp,version=15.7.27604.0)
F# language support for web projects (Microsoft.VisualStudio.Component.FSharp.WebTemplates,version=15.7.27703.1)
IIS Express (Microsoft.VisualStudio.Component.IISExpress,version=15.0.26208.0)
JavaScript and TypeScript language support (Microsoft.VisualStudio.Component.JavaScript.TypeScript,version=15.7.27520.0)
JavaScript diagnostics (Microsoft.VisualStudio.Component.JavaScript.Diagnostics,version=15.7.27520.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.6.27323.2)
Microsoft Azure WebJobs Tools (Component.Microsoft.VisualStudio.Web.AzureFunctions,version=15.7.27617.1)
Microsoft Azure WebJobs Tools (Microsoft.VisualStudio.ComponentGroup.AzureFunctions,version=15.7.27617.1)
NuGet package manager (Microsoft.VisualStudio.Component.NuGet,version=15.6.27309.0)
Razor Language Services (Component.Microsoft.VisualStudio.RazorExtension,version=15.0.26720.2)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.7.27625.0)
Web Deploy (Microsoft.VisualStudio.Component.WebDeploy,version=15.0.26208.0)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.7.27604.0)
Xamarin (Component.Xamarin,version=15.7.27617.1)
Xamarin Workbooks (Component.Xamarin.Inspector,version=15.0.26606.0)>
I tried downloading other version but i'm still getting the same error. I disabled my antivirus but it also didn't work. Please I need help it frustrating, what am i doing wrong?
I disabled my antivirus but it also didn't work. Please I need help it
frustrating, what am i doing wrong?
Please try these steps:
1) Launch regedit as Administrators
2) Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{7C0FFAB0-CD84-11D0-949A-00A0C91110ED}\1.0-->Right click-->launch Permissions -> Advanced
Ensure the Owner is SYSTEM
System and Administrator have Full Control to keys and subkeys.
Meanwhile, please check if you have specialized anti-virus, app-blocker, or GPO phased permission software installed that maybe be denying access to this key.
3) then do a reboot and after that, try to temporarily disable the anti-virus software and then run VS Installer as administrator to repair your installation.
In addition, if these does not work, please reinstall VS2017(please install the VS2017 15.9 which is the latest VS2017 version) under this link.
After you uninstall VS2017, please check if you have this: %programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe.
If so, please launch it from an admin command prompt with a -full param: InstallCleanup.exe -full
If not, please manually delete the %programfiles(x86)%\Microsoft Visual Studio\Installer folder
And then insatll VS2017 under my link and please remember to run it as admin.
Hope it could help you.

Couldn't Install Microsoft.Nuget.VisualStudio.Core ReturnCode 1603

I've been having some trouble with the latest version of the vs2017 Community Installer installing Visual Studio.
Package 'Microsoft.VisualStudio.NuGet.Core,version=15.0.40902.5706' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.NuGet.Core;PackageAction=Install;ReturnCode=1603
Details
Return code: 1603
Return code details: Fatal error during installation.
Log
C:\Users\myuseraccount\AppData\Local\Temp\dd_setup_20190110143209_001_Microsoft.VisualStudio.NuGet.Core.log
Impacted workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.8.27906.1)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.8.27906.1)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.8.27906.1)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.8.27906.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.6.27309.0)
Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.9.28307.102)
Game development with Unity (Microsoft.VisualStudio.Workload.ManagedGame,version=15.0.27005.2)
Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.9.28107.0)
Mobile development with JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.7.27625.0)
Node.js development (Microsoft.VisualStudio.Workload.Node,version=15.9.28107.0)
Office/SharePoint development (Microsoft.VisualStudio.Workload.Office,version=15.8.27924.0)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.9.28307.102)
Impacted components
.NET Core 2.0 development tools (Microsoft.NetCore.ComponentGroup.DevelopmentTools,version=15.8.27729.1)
.NET Core 2.1 development tools (Microsoft.NetCore.ComponentGroup.DevelopmentTools.2.1,version=15.8.27924.0)
.NET Core 2.1 development tools (Microsoft.NetCore.ComponentGroup.Web.2.1,version=15.8.27924.0)
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.7.27625.0)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.8.27825.0)
ASP.NET and web development tools prerequisites (Microsoft.VisualStudio.ComponentGroup.Web,version=15.9.28219.51)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.9.28107.0)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26504.0)
Azure Data Lake and Stream Analytics Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.9.28107.0)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=15.9.28107.0)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.9.28107.0)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.27005.2)
Cloud tools for web development (Microsoft.VisualStudio.ComponentGroup.Web.CloudTools,version=15.8.27729.1)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26621.2)
Developer Analytics tools (Microsoft.VisualStudio.Component.AppInsights.Tools,version=15.8.27825.0)
F# language support (Microsoft.VisualStudio.Component.FSharp,version=15.8.27825.0)
F# language support for web projects (Microsoft.VisualStudio.Component.FSharp.WebTemplates,version=15.8.27705.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.8.27729.1)
Microsoft Azure WebJobs Tools (Component.Microsoft.VisualStudio.Web.AzureFunctions,version=15.7.27617.1)
Microsoft Azure WebJobs Tools (Microsoft.VisualStudio.ComponentGroup.AzureFunctions,version=15.7.27617.1)
Mobile development with JavaScript core features (Microsoft.VisualStudio.Component.Cordova,version=15.0.26606.0)
Node.js development support (Microsoft.VisualStudio.Component.Node.Tools,version=15.8.27825.0)
NuGet package manager (Microsoft.VisualStudio.Component.NuGet,version=15.9.28016.0)
Office Developer Tools for Visual Studio (Microsoft.VisualStudio.Component.Sharepoint.Tools,version=15.8.27924.0)
Redgate SQL Search (Component.Redgate.SQLSearch.VSExtension,version=3.1.7.2062)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.9.28107.0)
Test Adapter for Google Test (Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest,version=15.8.27906.1)
Testing tools core features (Microsoft.VisualStudio.Component.TestTools.Core,version=15.7.27520.0)
Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.9.28119.51)
Universal Windows Platform tools for Cordova (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.9.28307.102)
Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.9.28307.102)
Visual Studio Tools for Office (VSTO) (Microsoft.VisualStudio.Component.TeamOffice,version=15.7.27625.0)
Visual Studio Tools for Unity (Microsoft.VisualStudio.Component.Unity,version=15.7.27617.1)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.8.27924.0)
Windows Workflow Foundation (Microsoft.VisualStudio.Component.Workflow,version=15.8.27825.0)
Xamarin (Component.Xamarin,version=15.8.27906.1)
I'm not really sure why this is happening. I've tried doing a clean install of Windows - didn't work; I've tried going to the URL here from MSFT and I get 0 results from the search.
The end result on opening VS is that Visual Studio has little to no tooling available for creating new ASP.NET projects, C# desktop projects, etc.
Here is the log file dump:
[19ac:0030][2019-01-10T14:36:03] Opening the package for processing
[19ac:0030][2019-01-10T14:36:03] Using package payload to get the embedded manifest
[19ac:0030][2019-01-10T14:36:03] Error 0x80131509: Error processing vsix manifest: System.InvalidOperationException: Specified part does not exist in the package.
at System.IO.Packaging.Package.GetPart(Uri partUri)
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.GetEmbeddedVsixPackageFromPayload(Package package, ILogger logger)
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.GetEmbeddedVsixPackage(IPackageIdentity vsix, Package package, ExecuteAction action, ILogger logger, Boolean isManifestCached)
at System.IO.Packaging.Package.GetPart(Uri partUri)
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.GetEmbeddedVsixPackageFromPayload(Package package, ILogger logger)
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.GetEmbeddedVsixPackage(IPackageIdentity vsix, Package package, ExecuteAction action, ILogger logger, Boolean isManifestCached)
Couldn't Install Microsoft.Nuget.VisualStudio.Core ReturnCode 1603
According to the error log, the issue should be that Visual Studio does not properly install the NuGet extension package. To resolve this issue, you should open the installer to reinstall the NuGet extension.
Modify the installer.
Switch to Individual components.
Under the code tools, uncheck the NuGet package manager.
Close the Installer, then re-open it, recheck the NuGet package manager.
If it not helps, or you can not modify the installer, please try to repair or re-install the Visual Studio to resolve this issue.
Hope this helps.
TLDR; Visual Studio creates a Packages folder under your hidden C:\ProgramData\Microsoft\VisualStudio directory. After reviewing the error logs, I discovered that the package for NuGet somehow got corrupted. Try deleting your packages folder and seeing if that clears up your installation; otherwise, just follow everything above.
After a lot of time working on this, here's what actually fixed the problem.
C:\ProgramData\Microsoft\VisualStudio - Delete the Packages folder here.
C:\Program Files (x86)\Microsoft Visual Studio - Delete the folders 2017, Installer, and Shared. Basically everything underneath the VS 2017 Install directory.
Re-run the installer for VS 2017.
NuGet.Core should be installed this time.
I installed my Visual Studio from a Layout (offline installation)- details on how to do that here. I would recommend creating a layout file (basically an ISO) so that you don't run into issues like I did above.
--For issues with the the current preview version
I was also getting errors with the Visual Studio 2019 preview version. What I did to fix that was create a layout (offline installer) of the 2019 version and deleted the package that was breaking my installation from my ProgramData subdirectory (C:\ProgramData\Microsoft\VisualStudio). I then ran the installer with the option --noWeb and it worked. Thanks Microsoft for giving us the ability to create layouts!!!!

Visual Studio 2017 installation fails with package install error

I am attempting to install visual studio 2017.
I get an error after the installation "Setup Operation Failed"
Below is the install output log.
The log reports this step failed:
Package 'Microsoft.VisualStudio.WebDeploy.Msi,version=15.0.26430.16,chip=x64' failed to install.
Log:
The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26323.1)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
Incomplete components
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
Web Deploy (Microsoft.VisualStudio.Component.WebDeploy,version=15.0.26208.0)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.0.26208.0)
You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.
Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.
Package 'Microsoft.VisualStudio.WebDeploy.Msi,version=15.0.26430.16,chip=x64' failed to install.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.WebDeploy.Msi;PackageAction=Install;ReturnCode=1720
Impacted workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26323.1)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
Impacted components
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
Web Deploy (Microsoft.VisualStudio.Component.WebDeploy,version=15.0.26208.0)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.0.26208.0)
Log
C:\Users\jawierzb\AppData\Local\Temp\2\dd_setup_20170731130217_255_Microsoft.VisualStudio.WebDeploy.Msi.log
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.WebDeploy.Msi,version=15.0.26430.16,chip=x64\webdeploy_x64.msi, Properties: REBOOT=ReallySuppress
Return code: 1720
Return code details: There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.
It references a detail log file which is too large to fit here but I am scanning it trying to find anything relevant.
The root cause of this issue turned out to be a windows problem. The WMI repository was corrupted. I re-installed windows and the install succeeded.

Installation - Visual Studio 2017 RC

am having problems on trying to install Microsoft Visual Studio RC 2017. Whenever I try and install the program, mid-way through, the program says:
"The product failed to install the listed workloads and components due
to one or more package failures."
Is there anyway I can fix this problem or go around it? I cannot simply install Visual Studio. The lists of commands that were returned are below. How do I fix this? I've already tried uninstalling everything and I can't seem to figure anything
The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26127.0)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.0.26127.0)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26127.0)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.0.26109.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.0.26127.0)
Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26109.1)
Game development with C++ (Microsoft.VisualStudio.Workload.NativeGame,version=15.0.26127.0)
Mobile development with .NET (Preview) (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26127.3)
Mobile development with JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.0.26109.1)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26109.1)
Visual Studio extension development (Microsoft.VisualStudio.Workload.VisualStudioExtension,version=15.0.26109.1)
Incomplete components
.NET Core runtime (Microsoft.Component.NetFX.Core.Runtime,version=15.0.26109.1)
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.0.26109.1)
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26109.1)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26127.0)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.0.26109.1)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26004.1)
Azure Data Lake Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.0.26109.1)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=15.0.26109.1)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.0.26109.1)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.26109.1)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26004.1)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26109.1)
Redgate SQL Search (Component.Redgate.SQLSearch,version=15.0.26127.0)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26109.1)
Universal Windows Platform tools (2.0) (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26127.0)
Universal Windows Platform tools for Cordova (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26109.1)
Universal Windows Platform tools for Xamarin (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26109.1)
Visual Studio extension development prerequisites (Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites,version=15.0.26004.1)
Windows 10 SDK (10.0.14393.0) (Microsoft.VisualStudio.Component.Windows10SDK.14393,version=15.0.26127.0)
You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.
Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.
Package 'Microsoft.PortableLibrary.TargetingPack.Msi.Resources,version=15.0.26109.1,language=en-US' failed to install.
Search URL: aka(DOT - Need 10 Reputations)ms/VSSetupErrorReports?q=PackageId=Microsoft.PortableLibrary.TargetingPack.Msi.Resources;PackageAction=Install;ReturnCode=1714
Impacted workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26127.0)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.0.26127.0)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26127.0)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.0.26109.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.0.26127.0)
Mobile development with .NET (Preview) (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26127.3)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26109.1)
Visual Studio extension development (Microsoft.VisualStudio.Workload.VisualStudioExtension,version=15.0.26109.1)
Impacted components
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.0.26109.1)
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26109.1)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26127.0)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.0.26109.1)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26004.1)
Azure Data Lake Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.0.26109.1)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=15.0.26109.1)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.0.26109.1)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.26109.1)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26004.1)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26109.1)
Redgate SQL Search (Component.Redgate.SQLSearch,version=15.0.26127.0)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26109.1)
Universal Windows Platform tools (2.0) (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26127.0)
Visual Studio extension development prerequisites (Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites,version=15.0.26004.1)
Log
C:\Users\Vishwadeep Singh.VishwadeepSingh\AppData\Local\Temp\dd_setup_20170201205921_131_Microsoft.PortableLibrary.TargetingPack.Msi.Resources.log
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.PortableLibrary.TargetingPack.Msi.Resources,version=15.0.26109.1,language=en-US\portablelibrary_dtplp_sfx.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" VSEXTUI="1" EXTUI="1"
Return code: 1714
Return code details: The older version of Microsoft Portable Library Multi-Targeting Pack Language Pack - enu cannot be removed. Contact your technical support group.
Package 'Microsoft.Net.CoreSDK.50,version=1.0.23907' failed to install.
Search URL: aka(DOT - Need 10 Reputations)ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.CoreSDK.50;PackageAction=Install;ReturnCode=1714
Impacted workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26127.0)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.0.26127.0)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26127.0)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.0.26109.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.0.26127.0)
Mobile development with .NET (Preview) (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26127.3)
Mobile development with JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.0.26109.1)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26109.1)
Visual Studio extension development (Microsoft.VisualStudio.Workload.VisualStudioExtension,version=15.0.26109.1)
Impacted components
.NET Core runtime (Microsoft.Component.NetFX.Core.Runtime,version=15.0.26109.1)
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.0.26109.1)
.NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26109.1)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26127.0)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.0.26109.1)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26004.1)
Azure Data Lake Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.0.26109.1)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=15.0.26109.1)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.0.26109.1)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.26109.1)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26004.1)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26109.1)
Redgate SQL Search (Component.Redgate.SQLSearch,version=15.0.26127.0)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26109.1)
Universal Windows Platform tools (2.0) (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26127.0)
Universal Windows Platform tools for Cordova (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26109.1)
Visual Studio extension development prerequisites (Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites,version=15.0.26004.1)
Log
C:\Users\Vishwadeep Singh.VishwadeepSingh\AppData\Local\Temp\dd_setup_20170201205921_132_Microsoft.Net.CoreSDK.50.log
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.CoreSDK.50,version=1.0.23907\netfx_NETCoreSDK.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7"
Return code: 1714
Return code details: The older version of Microsoft NetStandard SDK cannot be removed. Contact your technical support group.
Package 'Win10SDK_10.0.14393.795,version=10.0.14393.79500' failed to install.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.14393.795;PackageAction=Install;ReturnCode=-2147023293
Impacted workloads
Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26109.1)
Game development with C++ (Microsoft.VisualStudio.Workload.NativeGame,version=15.0.26127.0)
Mobile development with .NET (Preview) (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26127.3)
Mobile development with JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.0.26109.1)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26109.1)
Impacted components
Universal Windows Platform tools (2.0) (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26127.0)
Universal Windows Platform tools for Cordova (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26109.1)
Universal Windows Platform tools for Xamarin (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26109.1)
Windows 10 SDK (10.0.14393.0) (Microsoft.VisualStudio.Component.Windows10SDK.14393,version=15.0.26127.0)
Log
C:\Users\Vishwadeep Singh.VishwadeepSingh\AppData\Local\Temp\dd_setup_20170201205921_164_Win10SDK_10.0.14393.795.log
Details
Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -Command "& """C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.14393.795,version=10.0.14393.79500\WinSdkInstall.ps1""" -SetupExe sdksetup.exe -SetupLogFolder standalonesdk -PackageId Win10SDK_10.0.14393.795 -LogFile """C:\Users\Vishwadeep Singh.VishwadeepSingh\AppData\Local\Temp\dd_setup_20170201205921_164_Win10SDK_10.0.14393.795.log""" -SetupParameters """/features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart"""; exit $LastExitCode"
Return code: -2147023293
Return code details: Fatal error during installation.
This is still a problem with the RTM installer. These lines give you the relevant information:
C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.PortableLibrary.TargetingPack.Msi.Resources,version=15.0.26109.1,language=en-US\portablelibrary_dtplp_sfx.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" VSEXTUI="1" EXTUI="1"
Return code: 1714
Return code details: The older version of Microsoft Portable Library Multi-Targeting Pack Language Pack - enu cannot be removed. Contact your technical support group
and
C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.CoreSDK.50,version=1.0.23907\netfx_NETCoreSDK.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7"
Return code: 1714
Return code details: The older version of Microsoft NetStandard SDK cannot be removed. Contact your technical support group.
There are a variety of reasons why this might be the case but the most common one I would suspect is having removed the relevant MSIs, perhaps to free up disk space with something like CCleaner.
The easiest way to get past this is the Windows Installer Clean Up tool - which Microsoft, in their infinite wisdom, have decided to no longer distribute (because 'format and reinstall' is a much better solution to everything). Fortunately there are still mirrors out there such as via MajorGeeks:
http://www.majorgeeks.com/files/details/windows_installer_cleanup_utility.html
Install and run the tool to get a list of all the packages registered with Windows Installer, like so:
Select the packages which are preventing your VS install from proceeding and Remove. Now you are free to try installing again and see what other problems you get next.
When you're done, don't forget to thank Microsoft for fining innovative new ways to make developers' lives more difficult:

Cannot load shared 'project' in Windows Universal app after upgrading to Azure SDK 2.6

I've just installed the April 2015 release of the Azure SDK. It is version 2.6 and previously I was on 2.5. Now one of my projects will not load. It is the shared project in a Windows Universal application.
When I right-click the project and choose 'reload' I get the pop-up error
The method or operation is not implemented
The output window gives more detail:
Things.Shared.shproj : error : The composition produced a single
composition error. The root cause is provided below. Review the
CompositionException.Errors property for more detailed information.
1) No exports were found that match the constraint:
ContractName Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService
RequiredTypeIdentity Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService
Resulting in: Cannot set import
'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.ProjectReferencesService
(ContractName="Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService")'
on part
'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService'.
Element:
Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.ProjectReferencesService
(ContractName="Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService")
--> Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService
Resulting in: Cannot get export
'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.WireUp
(ContractName="Microsoft.VisualStudio.ProjectSystem.ConfiguredProject.AutoLoad")'
from part
'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService'.
Element:
Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.WireUp
(ContractName="Microsoft.VisualStudio.ProjectSystem.ConfiguredProject.AutoLoad")
--> Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService
The other parts to the Windows Universal app (the Windows 8.1 project and the Windows Phone 8.1 project) have two Azure NuGet packages installed: Windows Azure Mobile Services 1.3.2 and Windows Azure Storage 4.3.0. (N.B. Those two projects load without issue.)
This is not a show stopper for me since uninstalling the Azure SDK 2.6 removes the load failure. To uninstall I go via the Control Panel to 'uninstall or change a program' and then uninstall Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.6
I would like to know how to fix this without uninstalling the Azure SDK 4.6.
Over on the Azure Mobile Services forum Chuck Weininger has posted the following answer:
The [fixed] build of Azure SDK 2.6 is now available, but it may not have
propagated to all download servers yet.
You can run the Web Platform Installer and if you don’t have the new
build installed, it should allow you to install 2.6 again. But it
might not if you are accessing a download server that doesn’t have the
new bits yet. If WebPI doesn't allow you to install 2.6 again, then
wait a few hours and try again.
The build number for the version with the fixes is build
2.6.30508.1601. You can identify the build of the SDK from Control Panel -> Programs and Features -> Microsoft Azure Tools for Microsoft
Visual Studio 2013 – v 2.6. The Version column will display the build
number
I have followed Chuck's instructions and have the new build and the shared project now loads without issue.
We have been able to reproduce the issue, but don't have a workaround at this time. If you want to use the Universal App projects with VS 2013, you will have to uninstall Azure SDK for VS 2.6. The issue does not happen on VS 2015 RC if you would like to give that a try. We hope to have news soon about how we can get a fix for this issue on VS 2013.
Chuck Weininger, Dev Lead, Microsoft
https://social.msdn.microsoft.com/Forums/en-US/e8123821-dcb1-477f-a746-f6f016a724ea/cannot-load-shared-project-in-windows-universal-app-after-upgrading-to-azure-sdk-26?forum=azuremobile&prof=required#de621720-3afc-458c-ba85-f691be9e74c1

Resources