So i made a program in C# and added an Acces Database to it (.accdb). I can use it easily while in Debug mode, but after I publish the application it gives me an error everytime i try to use it (it says it can’t find it).
My question is how can i make it so that it also installs the .accdb file with the program?
In the debug folder, the .accdb file is in the same folder as the .exe, so i need to make it install in the same folder as the .exe.
You can see here how to add an installation wizard to your application, and you should then add the .accdb file to the installed files.
You will still probably have to check if the file exists, and if not – notify the user and quit, or create a blank template of your database and work with no data.