I have a WPF application that uses SQLite database. I created an installer using Inno setup but it's not working on another computer aside from the development computer.
What I have done:
- I added all the necessary files and dependencies
- I added SQLite.Interop.dll to the project and set the build action to "Copy Always"
- Inno setup does include folders after installation so I manually added the required folders including x64 and x86 which contain SQLite.Interop.dll
Observations:
- The application runs only if there's no existing database (because it creates a new database if there's none)
- The SQLite database file path is located at C:\ProgramData\My App\database.db
- The program is installed at C:\Program Files (x86)\My Application
The SQLite.Interop.dll for x86 works when copied to the program folder but that of x64 doesn't. (The application is targeting AnyCPU)
The SQLite.Interop.dll file size for x86 is 1,250 kb but after running the application for the first time the file size increase to 1,327 kb
So, how can I deploy the WPF application so it runs even when there's already an existing database file. For now it can only run when I clear the database and it creates a new database