Have you included the database in the "Application File"? If you do not do the following (at least this is how I do it):
Project β Properties β Publish β Application Files
Here set the values ββfor your .mdf and xx_log.ldf as follows:

Now, on the Publish tab, go to the Prerequisites section. Here you should check the following depending on which database you are using.

This will download SQL Server Express for the client that installs your application.
You will also have to change the connection string to a common path. I suppose the database is somewhere inside your project / bin folder, I think not sure. Therefore, configure the connection string to something like:
Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True
I recommend using a resource file or app.config
But basically, I think your problem is that SQL Server is not installed on the computer on which you are installing. Therefore, simply follow the instructions above in the Prerequisites section. Other steps will allow you to deploy the database to a project folder without manually moving it to a specific folder.
Hope this helps.
γ γΌ γΊ γ γ³
source share