Link to home
Start Free TrialLog in
Avatar of kkr
kkr

asked on

How to create a setup for a vb application?

I developed a vb application and want to have a setup of it so that any one can install it. How to get a install shield and do the required things.

thanx in advance
kris
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Hi kkr,

You can use the Package and Deployment Wizard from VB 6 to create a Setup file.

regards.
ASKER CERTIFIED SOLUTION
Avatar of harsh008_k
harsh008_k

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glass_cookie
glass_cookie

Hi!

If that's the one and only VB app (or one of the few) you're going to install on the other party's PC and if you iddn't use any third party dlls or dlls that you've written yourself, you could do something like zip everything up (including all ocx files that you've USED and the vb runtime file) and create a self extracting exe.

Upon running that exe, make sure that EVERYTHING is unzipped to the SAME folder.  Your program should run fine from there : )

If you've more than 1 app you're going to install on that PC in the future, simply dump all the ocx files and the vb runtime in the system folder once and all other VB proggys would still run, but don't forget to include new vb ocx files that you've used that wasn't copied to that PC before.

That's it!

glass cookie : )

That's it!

glass cookie : )
Copy all the ocx/ dlls into System folder without register it is dangerous and NOT recommended.

By the way, kkr, you can use the Regsvr32.exe to register your ocx/dlls:

Example:

regsvr32 C:\Winnt\system32\Msdatgrd.ocx 'For NT/2000

or

regsvr32 C:\Windows\system\Msdatgrd.ocx 'For Win9X

regards.
use MS VB Package and Deployment tool. It makes every thing for you, adding the ocxs used by your application, and installs all Dlls required.

Do not use compressing or self extracts, cause you then need to register any ocx your application uses manually, and to copy the Dlls to the WinSys folder.

Tarek
Avatar of kkr

ASKER

Can i use Install Shield s/w to create setup and is the s/w available free of cost and any tips on using it.
regards
kk
Sorry... should have been more clear and correct...

Well, usually, ocx files and the vb runtime file would work fine within the same folder as that of the app you're loading to that party's PC.  Those ocx files must also be those that came with your version of VB, not some 3rd party ocx files.  Dll files used must also be those hat come with windows.  ONLY for that case, you do not need to register those ocx.  These are the conditions of my method.

Copying them into the system folder would only be dangerous if someone were to install some VB deployment setup.exe to install some VB app on that PC.  Then and there, it might confuse the installation.  Not very sure of other causes...

Sorry about the mistake.

As for me (just for me), I prefer to use self-extractors as I don't really like the design of it and some other reasons (ie. redundant files packaged together sometimes - vb runtime).

That's it!

glass cookie ; )
Hi!

Never tried Install Shield.  I use winzip.  Maybe the other experts here can help you with it.
Avatar of kkr

ASKER

Thanx for all the experts for ur valuable comments.
regards
kris