I developed an application in WPF for local usage on a computer. This application contains a database file (SQLite) where the user can store and read data in it. This means the database file needs read and write permissions. I deploy the application with the Setup Wizard of Visual Studio 2019.
I can install the application on different computers and the application works. After the installation of the application the database file will be stored in the User's local app data folder like ...Users/Username/AppData/Roaming/... The problem is, this database can only be accessed by the user who installed the application. But I want that all users on the local system have access on this database file, so that the application will work on every user account on this computer.
So I need a folder location where every user and new users in future have access to store my database file. Additionally I've tried to store the database in the application folder (it's like C:\programms..., the standard thing), commonAppFolder (which is like C:\ProgramData) but nothing works because of the missing permissions in this folders. Is there any folder what I can configure my Setup wizard with? What is with the public folder in c:\users\? I have no options to choose that path in the setup wizard (no special folder or something)? Is there any recommended method of solving my problem with a database file that must have read/write permissions for every user, so that the application works for every user on the computer?
Hope you understand it, English is not my natural language.