Abilash
Abilash

Reputation: 113

Creating setup project in .NET with MS Access

I am doing a Windows forms application.I am using MS Access as database.I need to create a setup project of my application.Where can i keep this mdb file while creating the setup project so that both direction data flow will be possible after installing my application?

Upvotes: 0

Views: 867

Answers (1)

Beth
Beth

Reputation: 9617

The setup can install an .mdb file just like it can copy any other file, but I'm not sure what you mean by

both direction data flow will be possible after installing my application

you don't expect the installed .mdb to be a replica of a master database that automatically synchronizes data for you, do you?

You need to do a lot more work to get data synchronization going.


In response to comments, If you can't get the setup to install a file you need in c:\somewhere, have the setup install it in the application directory. Then, when your .exe runs, have the .exe check if your file exists in c:\somewhere. If it doesn't, have your .exe copy the file from the application directory where the setup can install it to the place your .exe expects it, c:\somewhere. Then your application can use it. You add another check for the file your .exe needs before your .exe uses it.

Upvotes: 2

Related Questions