Solved

How to create a setup for a vb application?

Posted on 2001-09-10
9
198 Views
Last Modified: 2006-11-17
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
0
Comment
Question by:kkr
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
Hi kkr,

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

regards.
0
 
LVL 1

Accepted Solution

by:
harsh008_k earned 200 total points
Comment Utility
1)Go to addins
2)choose Package and Deployment Wizard
3)Once again go to addin
4)Choose Package and Deployment wizard
Then follow the wizard to complete the setup
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
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 : )
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
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.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Expert Comment

by:TarekEslim
Comment Utility
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
0
 

Author Comment

by:kkr
Comment Utility
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
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
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 ; )
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
Hi!

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

Author Comment

by:kkr
Comment Utility
Thanx for all the experts for ur valuable comments.
regards
kris
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now