Problems installing Dot Net Core 1.0.0 VS 2015 Tools Preview 2

Visual Studio-2015asp.net Core.Net Core

Visual Studio-2015 Problem Overview


Each time I try to install the DotNetCore.1.0.0-VS2015Tools.Preview2.exe package I get an error saying the following:

> Setup Failed One or more issues caused the setup to fail. Please fix > the issues and then retry setup. For more information see the log > file. Setup has detected that Visual Studio 2015 Update 3 may not be > completely installed. Please repair Visual Studio 2015 Update 3, then > install this product again.

When I look into the log file, I find the following line which seems to be causing the error during install:

> Condition 'WixBundleInstalled OR NOT(((VS2015CommunityUpdateVersion <> > VS2015UpdateVersion) AND (VS2015CommunityExists) AND > (VS2015UpdateVersionExists)) OR ((VS2015ProfessionalUpdateVersion <> > VS2015UpdateVersion) AND (VS2015ProfessionalExists) AND > (VS2015UpdateVersionExists)) OR ((VS2015EnterpriseUpdateVersion <> > VS2015UpdateVersion) AND (VS2015EnterpriseExists) AND > (VS2015UpdateVersionExists)) OR ((VS2015WebExpressUpdateVersion <> > VS2015UpdateVersion) AND (VS2015WebExpressExists) AND > (VS2015UpdateVersionExists))) OR (SKIP_VSU_CHECK=1) OR > (WixBundleAction=2)' evaluates to false.

A simple repair of Update 3 has not resolved the issue, so I was attempting to resort to an uninstall/reinstall of the update. When going through

> Control Panel > Programs and Features > View Installed updates

to uninstall the update, it jumps right to the "Setup Completed" screen saying that all of the components have been uninstalled without any progress screen. Then when I attempt to run the Update 3 installer it says the Update is already installed.

I then tried using Revo Uninstaller but the same thing happens after cleaning out folders and registry items.

I even tried doing an /uninstall /force on the package but to no avail. It seems something is remaining stuck somewhere that keeps the update registered.

Any suggestions?

Visual Studio-2015 Solutions


Solution 1 - Visual Studio-2015

I was able to install it by running with SKIP_VSU_CHECK parameter

DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1

Solution 2 - Visual Studio-2015

EDIT: I believe that Andrey's solution is probably better long term, as it doesn't involve registry hacking. Please try his instructions below first. I will leave my original answer in place for posterity.


I received the same error message on a fresh Windows 10 install, with a fresh Visual Studio 2015 install. I believe the VS2015 install process automatically downloaded and applied Update 3 during the process.

Chasing the logfile showed that it was comparing several version numbers. In my case, the 'Community' edition version mismatched.

[27B8:1BBC][2016-07-20T16:17:11]i000: Setting string variable 'VS2015UpdateVersion' to value '14.0.25420'
[27B8:1BBC][2016-07-20T16:17:11]i000: Setting string variable 'VS2015ProfessionalUpdateVersion' to value '14.0.25420'
[1A60:0CD4][2016-07-20T16:14:36]i000: Setting string variable 'VS2015CommunityUpdateVersion' to value    '14.0.25424'

Nobody in the history of the internet has ever used version 14.0.25424, so I assumed it must be a typo. After changing the VS Community UpdateVersion string value from 14.0.25424 to 14.0.25420 in the registry, the installer worked fine for me.

The full registry keys to check include:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing\14.0\community
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DevDiv\vs\Servicing\14.0\community\1033

Both should have the following string value:

"UpdateVersion"="14.0.25420"

Hope this helps.

Solution 3 - Visual Studio-2015

Know issues, https://msdn.microsoft.com/en-us/vs-knownissues/vs2015-update3-rc, details a similar issue with preview1.

May be worth keeping an eye on for updates about preview2.

I have the same issue but haven't solved it yet. My version numbers are different to those listed for the fix for preview 1, this answer is just pointing you to the official issue page.

[Update] the official word on this is at https://github.com/aspnet/Tooling is

"Due to a known issue in the setup detection logic, even though you have Visual Studio 2015 Update 3 RC installed, you might see the following message when you run the installer. This will be fixed in the next build. For now, to work around this and bypass the check, you can run the EXE from a command prompt and then pass SKIP_VSU_CHECK=1 at the end. "

[Update 2] - for in-depth info on upgrading to rc2 from rc1, David Pine's blog on the steps required is very good.

ievangelist dot github dot io /blog/migrating-to-rc2/

Solution 4 - Visual Studio-2015

I tried this first from @Andrey

DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1

This partly worked as in I was able to complete the installations. On VS startup there was a warning message that some components would not work. I was able to edit code but not to run an example app.

I remembered an earlier warning message from the "Visual Studio Community 2015" installation about mismatching versions of "Visual C++ 2015 Redistributable". So my next experiment was to go into "Control Panel -- Programs and Features" and uninstall the 2 x examples I found "(x64)" and "(x86)". I then ran a repair installation of "Visual Studio Community 2015". Success.

Solution 5 - Visual Studio-2015

I ran the installed from cmd using the following: DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1

Installed without any issues

Solution 6 - Visual Studio-2015

I had the same issue but none of the above answers helped me.

The issue can be caused by the exe trying to download content via IE so it might not be enough to simply change a setting or two from IE but it's recommended to reset them to default, this solved my issue.

Solution 7 - Visual Studio-2015

Using CMD and run this command

DotNetCore.1.0.0-VS2015Tools.Preview2.exe /layout

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionXipoooView Question on Stackoverflow
Solution 1 - Visual Studio-2015AndreyView Answer on Stackoverflow
Solution 2 - Visual Studio-2015Matt MurrellView Answer on Stackoverflow
Solution 3 - Visual Studio-2015Steve FView Answer on Stackoverflow
Solution 4 - Visual Studio-2015iafilmView Answer on Stackoverflow
Solution 5 - Visual Studio-2015Ben PretoriusView Answer on Stackoverflow
Solution 6 - Visual Studio-2015Midnight_BlazeView Answer on Stackoverflow
Solution 7 - Visual Studio-2015Tuan ZaidiView Answer on Stackoverflow