I have created a software with C# on windows platform.
So it uses an access database file which it is embedded in bin folder of application.
How can I prevent windows users from deleting the database file in windows exloprer ?
They can navigate to bin folder and then select the database and press delete on their keyboard…
What should am I do ?
Hiding the bin folder or the folder which contains database is not secure I think , because they can un-hide that…
The computer belongs to the user. You shouldn’t be trying to prevent users from doing what they want to their computers.
If the database is a critical piece of the application, then it isn’t any different from the user navigating to the program folder and pressing delete on your main executable – if they do things like that, they should expect to have to reinstall the application.
So your program can show a nice message if it sees the database is missing, like “This application is no longer in a usable state. Please reinstall the application.”