In a short time I had to create an installer for desktop application in C #, and as in Visual Studio 2013 there was Publish that already created the Setup and Auto-Update I ended up using it for the convenience, but now I have a problem, every time which publishes a new version of the application and it is downloaded, it creates a new empty database and somehow "arrows" that database to the application. If I have to restore the application to the previous version, the old database is intact with all the data.
I imagine it is easy to solve this problem, and it should be just some parameter that I did not take into account when setting up, the problem that I'm not quite sure what to look for. And the google search returns me result that is not really the answer to my problem.