Deployment - including database files
This question is so basic that I could not find an answer anywhere. I am new to deployment issues. O.K. here it is:
My application was done using VS.Net. I have used the Setup Wizard under "Setup and Deployment" to create an executable.
The application depends on the existence of two database files. They are included in the Setup files (they appear as items in the Editor). The included files reside in the same directory as the application.
The application runs fine on the computer with the database files present. However, on the target computer these files would have to be copied to the specified directory and that is not happening. I get an error message saying that the program cannot find the file path.
My question really is: How do I deploy database files (mdb format) and get them copied to a specified path.
I know that is a really dumb question and I apologize.
Thanks for your help,
Ursula
[966 byte] By [
mclines] at [2007-11-18 17:39:31]

# 1 Re: Deployment - including database files
In VS.NET - in your setup project, double click on the primary output file so that the File System Editor is open. Then right click - Select Add -File and then point to your database that you want to include in the install.
HTH,
Greg
# 2 Re: Deployment - including database files
Thanks a lot, but
No, that's not it. As I wrote, I did include the files. They are present and included in the deployment project.
Here is my take on it. The files go into the Application folder (there are only 2 choices to change their path (Application Folder, Desktop and Appl. Menu.) I tried other "Folder Options (Custom and Special)", but I could not figure out how to add a fully qualified path.
Is there a way to reference the paths to these files, knowing that the user may change them?
Thanks again Greg!
# 3 Re: Deployment - including database files
I would think that creating a custom folder should do the trick and then add your mdb file in that folder. Other than that, I'm not sure how else you would deploy a database with your install unless you put the path to the database in an application config file and then move the database after install to that folder.
But...the custom folder should work.
Sorry I couldn't help more.