Monday, January 12, 2009

Creating SetUp for a VB application

Follow the following steps to create the installer for ur project. But before trying this make sure that u have created the executable (.exe) for ur project.

To create that here is steps.

1. Open ur project in vb
2. Go to file menu
3. Click makes prjctname.exe
It shows a dialog box
In tat type de name to display in exe file.
4. Click ok.
It will create a prjctname.exe to ur project folder

Then follow this steps..
1.close ms vb6.0 ide
2.click start>-programs->Microsoft visual studio 6.0->Microsoft visual studio 6.0 tools->package and deployment wizard
3.click browse to locate ur project file(.vbp)
4.click package
5.click yes to start the recompilation process
6.in package type select standard setup package and click next
7.select the destination where u want to create the package folder for ur project. This folder will contain all the supported and main application files required to install ur apps in some other client machine.
8. Click yes to create the folder if it doesn't exist and click next
9. in package deployment wizard-DAO Drivers will list of Available drivers and u include drivers tat u needed for project using insertion symbol(> or>>). Click next
10. here it ask for include files to support ur project
Here include tat prjctname.exe file and ur db file. And click checked.. Click next.
11..if u want ur setup becomes a standalone package select single cab otherwise if u want part installer then select multiple cab. If u select the 2nd option u have mention the size of the floppy disks. Then the wizard will ask u insert the floppies one after another will recommend u not to use this option. Click next (if u see any shared files box or dependency information box just skip that)
12. Insert a title for the installer (i.e Installation Title.., to be displayed while installing & after install) and click next
13. In the next screen-Start Menu Items … adjust the menu appearance the setup will create for you. This will become the start menu shortcuts for ur apps.
14. Click next-> it show Install location screen ->click next
Shared files screen shows in that Select de check box of files to be shared. Click next
15. In the script name box u does not require to enter anything but do not erase the default text.
16. Click finish to build the installer.
17. Click close->click closeafter the installer is created just go to the package folder and there u will find a file "setup.exe". Double click that to run the installer.

It will work successfully.