SQLite User Forum

How to update SQLite on Windows Server 2012/2016/2019
Login

How to update SQLite on Windows Server 2012/2016/2019

(1) By anonymous on 2022-05-18 08:05:11 [link] [source]

In order to improve our Security Exposure Score, we have been recommended to update SQLite on our Server Fleet. That is great - except where is it? We have checked Programs and Features, done searches in files and folders, checked registries and came up empty. It is like it is not installed at all. Microsoft Defender 365 ATP has flagged this however after some pretty thorough investigations, we cannot seem to find it anywhere.

We are running version 3.33.00.0 and there have been a few updates since then.

Any pointers on how to update this illusive piece of software would be most appreciated. Thank you!

(2.2) By Aask (AAsk1902) on 2022-05-18 15:01:46 edited from 2.1 in reply to 1 [link] [source]

By default, SQLite does not require installation; therefore, it is unlikely that you will have an option to uninstall SQLite or that you will find any entries in the Windows registry.

This command from the command prompt:

C:

cd\

DIR /S /B SQLITE*.* > %userpRofile%\APPDATA\LOCAL\TEMP\SQLITE.txt

will write the locations of anything related to SQLite to a file named SQLITE.TXT in the current user's temporary path. Repeat for other drives; when doing so, change the > to >>

This command from the command prompt:

C:

cd\

NOTEPAD %userpRofile%\APPDATA\LOCAL\TEMP\SQLITE.txt

will allow you to view the fully qualified path of anything related to SQLite

Follow these steps:

  1. Create an image of your Windows Server ... you might need this to revert to its original configuration

  2. Ordinarily, you can replace existing SQLite3.DLL by a later version. To do this:

    a. rename the existing copy by adding a suffix to the extension such as _org

    b. copy the new SQLite3.DLL to the same location

If you encounter issues,

a. delete sqlite3.dll

b. rename the existing sqlite3.dll_org to sqlite3.dll

This should reverse the changes. If not, restore the system image.

Follow step 2 ONLY IF you do not have files other than SQLite3.DLL e.g. files like SQLite.Interop.dll etc.

(3) By Donald Griggs (dfgriggs) on 2022-05-18 12:35:47 in reply to 2.0 [link] [source]

Aask, I wondered if, in your helpful directions, you might have intended a backslash before "sqlite" in the DIR command, since it's common for users not to be in the root directory. I.e.,

DIR /S /B \SQLITE*.* > %userpRofile%\APPDATA\LOCAL\TEMP\SQLITE.txt

(4) By Aask (AAsk1902) on 2022-05-18 14:56:30 in reply to 3 [link] [source]

Thanks for pointing this out, Donald; I usually watch out for this .. but didn't in this case.

(To make amends) I've edited the original post.

(5) By anonymous on 2022-05-19 07:43:39 in reply to 2.2 [source]

Hi Aask,

Thank you for the thorough response. We will investigate and I will give you the results soon.