question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET CLI Installer fails with error 0x80070666 if newer CRT is installed (VC Update 3)

See original GitHub issue

Steps to reproduce

  1. Install VS 2015 + Update 3 RC candidate. If you are a Microsoft employee, you can obtain these machines from http://xlab
  2. Download the CLI installer from https://dotnetcli.blob.core.windows.net/dotnet/preview/Installers/Latest/dotnet-dev-win-x64.latest.exe and try to run it.

Expected behavior

Install succeeds

Actual behavior

Install fails with this error 0x80070666.

Which is: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

[1A6C:18C8][2016-06-03T12:28:54]i000: Caching bundle from: ‘C:\Users\greggm\AppData\Local\Temp{F0CE44A1-8D96-45E9-9D9A-A26B983A46A3}.be\dotnet-dev-win-x64.1.0.0-preview2-002959.exe’ to: ‘C:\ProgramData\Package Cache{8a7f62bd-d30d-45b6-9159-1980659a5df3}\dotnet-dev-win-x64.1.0.0-preview2-002959.exe’ [1A6C:18C8][2016-06-03T12:28:54]i320: Registering bundle dependency provider: {8a7f62bd-d30d-45b6-9159-1980659a5df3}, version: 1.0.0.2959 [1A6C:18C8][2016-06-03T12:28:54]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8a7f62bd-d30d-45b6-9159-1980659a5df3}, resume: Active, restart initiated: No, disable resume: No [0FAC:1AE4][2016-06-03T12:28:54]w343: Prompt for source of package: VC_redist.x64.exe, payload: VC_redist.x64.exe, path: C:\Users\greggm\Downloads\VC_redist.x64.exe [0FAC:1AE4][2016-06-03T12:28:54]i338: Acquiring package: VC_redist.x64.exe, payload: VC_redist.x64.exe, download from: http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409 [1A6C:07EC][2016-06-03T12:28:55]i305: Verified acquired payload: VC_redist.x64.exe at path: C:\ProgramData\Package Cache.unverified\VC_redist.x64.exe, moving to: C:\ProgramData\Package Cache\9A19A51D1F40CD5CD5ECB6E4E4F978F18DA8212A\VC_redist.x64.exe. [0FAC:1AE4][2016-06-03T12:28:55]i336: Acquiring container: WixAttachedContainer, copy from: C:\Users\greggm\Downloads\dotnet-dev-win-x64.latest.exe [1A6C:18C8][2016-06-03T12:28:55]i301: Applying execute package: VC_redist.x64.exe, action: Install, path: C:\ProgramData\Package Cache\9A19A51D1F40CD5CD5ECB6E4E4F978F18DA8212A\VC_redist.x64.exe, arguments: ‘“C:\ProgramData\Package Cache\9A19A51D1F40CD5CD5ECB6E4E4F978F18DA8212A\VC_redist.x64.exe” /q /norestart’ [0FAC:1AE4][2016-06-03T12:28:55]i000: Setting string variable ‘WixBundleLastUsedSource’ to value 'C:\Users\greggm\Downloads' [1A6C:07EC][2016-06-03T12:28:56]i305: Verified acquired payload: dotnet_dev_win_x64.1.0.0_preview2_002959.msi at path: C:\ProgramData\Package Cache.unverified\dotnet_dev_win_x64.1.0.0_preview2_002959.msi, moving to: C:\ProgramData\Package Cache{5998961F-838F-4D7B-8558-94226C800038}v4.0.2959\dotnet-dev-win-x64.1.0.0-preview2-002959.msi. [1A6C:07EC][2016-06-03T12:28:56]i305: Verified acquired payload: cab1F012110334EE02E016A26C59ED9850B at path: C:\ProgramData\Package Cache.unverified\cab1F012110334EE02E016A26C59ED9850B, moving to: C:\ProgramData\Package Cache{5998961F-838F-4D7B-8558-94226C800038}v4.0.2959\dnet-1.cab. [1A6C:07EC][2016-06-03T12:28:56]i305: Verified acquired payload: dotnet_sharedframework_win_x64.1.0.0_rc3_004373.msi at path: C:\ProgramData\Package Cache.unverified\dotnet_sharedframework_win_x64.1.0.0_rc3_004373.msi, moving to: C:\ProgramData\Package Cache{6F7911F2-EA90-4AE6-AF97-EF6B8C22B8FF}v1.0.0\dotnet-sharedframework-win-x64.1.0.0-rc3-004373.msi. [1A6C:07EC][2016-06-03T12:28:56]i305: Verified acquired payload: dotnet_host_win_x64.1.0.1_rc3_004373_00.msi at path: C:\ProgramData\Package Cache.unverified\dotnet_host_win_x64.1.0.1_rc3_004373_00.msi, moving to: C:\ProgramData\Package Cache{7F6D5A75-241E-4D48-ABCA-B0203A07DE21}v0.0.4373\dotnet-host-win-x64.1.0.1-rc3-004373-00.msi. [1A6C:18C8][2016-06-03T12:28:56]e000: Error 0x80070666: Process returned error: 0x666 [1A6C:18C8][2016-06-03T12:28:56]e000: Error 0x80070666: Failed to execute EXE package. [0FAC:1AA8][2016-06-03T12:28:56]e000: Error 0x80070666: Failed to configure per-machine EXE package. [0FAC:1AA8][2016-06-03T12:28:56]i319: Applied execute package: VC_redist.x64.exe, result: 0x80070666, restart: None [0FAC:1AA8][2016-06-03T12:28:56]e000: Error 0x80070666: Failed to execute EXE package. [1A6C:18C8][2016-06-03T12:28:56]i351: Removing cached package: VC_redist.x64.exe, from path: C:\ProgramData\Package Cache\9A19A51D1F40CD5CD5ECB6E4E4F978F18DA8212A
[1A6C:18C8][2016-06-03T12:28:56]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8a7f62bd-d30d-45b6-9159-1980659a5df3}, resume: None, restart: None, disable resume: No [1A6C:18C8][2016-06-03T12:28:56]i330: Removed bundle dependency provider: {8a7f62bd-d30d-45b6-9159-1980659a5df3} [1A6C:18C8][2016-06-03T12:28:56]i352: Removing cached bundle: {8a7f62bd-d30d-45b6-9159-1980659a5df3}, from path: C:\ProgramData\Package Cache{8a7f62bd-d30d-45b6-9159-1980659a5df3}
[1A6C:18C8][2016-06-03T12:28:56]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8a7f62bd-d30d-45b6-9159-1980659a5df3}, resume: None, restart initiated: No, disable resume: No [0FAC:1AA8][2016-06-03T12:28:56]i399: Apply complete, result: 0x80070666, restart: None, ba requested restart: No

Environment data

dotnet --info output:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
regisbsbcommented, Mar 28, 2017

@piotrpMSFT not fixed as it prevents installation if VS2017 is installed

4reactions
JohnGalt1717commented, Jan 9, 2017

This also fails if you have VS.net 2017 RC installed with the RC C++ runtimes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET CLI Installer fails with error 0x80070666 if newer CRT ...
I found some workaround: remove Visual C++ redistrutable 2015 (both) and then installation should succeed. 2
Read more >
Fix: Error 0x80070666 when Installing Microsoft Visual C++
Several affected users have reported being able to resolve the Setup failed – 0x80070666 installation error by uninstalling the newer version.
Read more >
Fixed: Microsoft Visual C++ Installation Error 0x80070666
Method 1: Uninstall All Current Microsoft Visual C++ Redistributable Packages; Method 2: Update Your Windows System; Method 3: Repair the Visual ...
Read more >
Microsoft Visual C++ Error 0x80070666 In Windows 10/8/7 FIX
Microsoft Visual C++ Error 0x80070666 In Windows 10/8/7 FIX. Several Windows users are encountering the “0x80070666” error when trying to ...
Read more >
How To Fix Error Code 0x80070666 While Installing ...
One way to fix the problem is simply to delete all Visual C++ redistributable packages from your computer, and then try to install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found