Making Setup File in Visual Basic that Works with Database
Note: Click in Image to enlarge it
Generally a publishable setup file can be easily made in Visual Basic but when you make an application that needs database access then you may face many problems while making setup file. If you follow common process on making VB setup,i.e through publish menu then you will find that the database will not be linked with the application, so you need to make new setup Visual Basic Project.
So to make Setup Project, you will need to follow these Procedures.
First of all check the project well for which you would want to make a setup of. When you complete the system test and find no problem, rebuild the program and then go to the project folder>bin>Debug and then open the application. If the application runs well, you are ready to make the setup file.
Now create a new project and select Setup and Deployment under Other Project types and select Setup Project as shown in the Figure.

Now we need to add files. Right click the application Folder>Add>File as shown in Figure and add the application file from bin>Debug and also add database file from bin>Debug

Now click application folder and from the properties, change always create to true.

You can even create the shortcut by right clicking the file added and create shortcut and add the shortcut in user desktop folder and then set always create property of user desktop to true.
Now you are done, click build and build the project as shown in the figure.

Now goto projects Folder>bin>Debug and those two files shown in the figure below are setup files.

1 comments:
Perfect brother nice works
Post a Comment
You can Comment here. Please make some reasonable Comments. This Blog is Dofollow so get a backlink as a Gift.
Be Sure you use Name@Keywords
Using Keywords directly may make your comments difficult to get approved.