How to prevent Electron from overwriting a file after reinstallation

I am using Electron as a desktop application and sqlite as a local database. When I install it with a new installation package, I will overwrite the previously stored database files. How can I prohibit overwriting?

May.02,2021

Don't package the database storage


have you solved the problem

Menu