Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems installing Dot Net Core 1.0.0 VS 2015 Tools Preview 2

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?

like image 424
Xipooo Avatar asked Jun 30 '16 22:06

Xipooo


People also ask

Does VS 2015 support .NET core?

Visual Studio 2015 will only support . NET Core <= 1.1 (ie. project. json).

Do I need to install .NET core on server?

They are designed to allow them to be installed side-by-side. However you do need to install the . NET Core runtime onto the server to allow the code to be run because the OS has native dependencies that need to be present. See this link for more information.

Is .NET core installed with Visual Studio?

NET Core can be installed in two ways: By installing Visual Studio 2017/2019 or by installing . NET Core Runtime or SDK. . NET Core installer already contains ASP.NET Core libraries, so there is no separate installer for ASP.NET Core.


2 Answers

I was able to install it by running with SKIP_VSU_CHECK parameter

DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1 
like image 83
Andrey Avatar answered Dec 09 '22 13:12

Andrey


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.

like image 38
Matt Murrell Avatar answered Dec 09 '22 14:12

Matt Murrell