Kaoru
Kaoru

Reputation: 2883

Create Setup and have database package inside it

I want to create a setup in my program (windows forms), I already could make a setup in my program (windows forms), but once I run, the program did not recognized, because my program is connected to the database. How do I create setup along with the database file inside the setup? So, when the setup is finished installing, the database which is saved in the certain folder, will be automatically placed in the target machine along with the application.

So, the application could used by user, because my application is connected to the database, without database, the application became useless.

But, how do I do that?

And when the application already published, and let's say I want to update the application (because I correct some bugs in the program). And when user open the program, it will ask to update to latest version. How do I also do that?

Could you guys help me?

Upvotes: 0

Views: 1394

Answers (1)

Kurubaran
Kurubaran

Reputation: 8902

Follow the steps gieven below, This will copy the access database to the installation path during installation.

  1. Select your Installation project in the solution and then select File System Editor File System Editor

  2. Select the Application Folder under File System on Target Machine window. This will display all the assemblies and other files which will be copied to the installation path during the application deployment.

enter image description here

  1. Right click in the middle panel (Where assemblies are listed) go to Add > File option which will open FileBrowserDialog and select the Access Database you want to package with the MSI.

enter image description here

Upvotes: 1

Related Questions