Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Data.Sqlite - Failure to install Microsoft Visual C++ Runtime

I am trying to install the design-time components of System.Data.Sqlite -- I want to be able to connect to SQLite databases from within Visual Studio, execute queries, and retrieve data.

As per the instructions on the System.Data.Sqlite downloads page, I downloaded the setup bundle for 32-bit Windows, targeting .NET 4.6.

When I try to install, I get the following error:

Failed to install Microsoft Visual C++ Runtime: vcredist_x86_2015_VSU2.exe, 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

I am running Visual Studio 2015 Community Edition Update 3, with cumulative hotfixes, available here; on Windows 10 64-bit. I tried uninstalling the Microsoft Visual C++ 2015 Redistributable (x86) and rerunning the VS 2015 Community Edition hotfix installer to reinstall it, and then rerunning the SQLite installer, but the same error still occurred.

How can I resolve this?

like image 390
Zev Spitz Avatar asked Mar 12 '23 13:03

Zev Spitz


1 Answers

You were oh-so-close to the solution. You've just got a couple steps backwards.

The issue is that the System.Data.Sqlite package includes VC++ Update 2, but you've already got the newer Update 3 installed. Rather than recognize there's already a newer version installed, all the setup program sees is that installing U2 failed and bails out. So, we need to let it do its thing and install the U2 package to get past that point:

  1. Uninstall "Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24212"
  2. Install the Sqlite package
  3. THEN re-install Update 3
like image 158
jmbpiano Avatar answered May 05 '23 05:05

jmbpiano