Solved

Setup Program

Posted on 2003-12-10
17
213 Views
Last Modified: 2011-09-20
I want to write a program in VB that will select a directory and puts all the files into cab files (or something like that) and makes a setup.exe file, that i can burn the material onto multiple cd's and then have the end user install onto their machine from the cd's into a directory and once the first cd is done, it will ask for the following cd's to copy the remaining files.

i guess i just need code that will package all the files up (over 2 gigs worth possibly, in one case) and also that will unpack the files and copy them to the proper directory and know when the cd is done to ask for the next one when approriate.

thanks
0
Comment
Question by:jmingo
  • 6
  • 5
  • 2
  • +2
17 Comments
 
LVL 27

Accepted Solution

by:
Dabas earned 84 total points
ID: 9915297
Hi jmingo:
Why not use the Package and Deployment Wizard that comes with VB?
Click on Add-Ins Add-In Manager
Click on Package and Deployment Wizard and make sure that the Loaded checkbox is ticked

Click Ok

Now the PDW will appear under your Add-Ins Menu and you only have to follow the prompts

Dabas
0
 

Author Comment

by:jmingo
ID: 9915483
it seems to only allow me to create cab files that are suitable for floppy drives.

is there something i'm missing?? i don't know how to use the package and deployment wizard very well.

and if so, do i copy the files in my code? or does the deployment wizard handle that. it kinda confuses me.

thanks for your help.
0
 
LVL 27

Expert Comment

by:Dabas
ID: 9915613
jmingo:
It asks you if you want a single cab or Multiple
Just choose single

It will do everything for you. Just follow the prompts, probably accepting all of the defaults on the way is a safe way to go

Dabas
0
 

Author Comment

by:jmingo
ID: 9916055
if i choose single, won't it make one huge one? for example, 1, 1.2 gid cab file.
0
 
LVL 27

Expert Comment

by:Dabas
ID: 9916142
jmingo:
You can choose either one or multiple files!
It is your call!

Why do you not just try out and see for yourself how big it is?

Dabas
0
 
LVL 18

Assisted Solution

by:Sethi
Sethi earned 83 total points
ID: 9918122
Use Inno setup. It has a better compression technology and is also free of cost. Also download some third party tools from the following site to assist you in packaging with Inno.:
http://www.jrsoftware.org
0
 

Author Comment

by:jmingo
ID: 9920051
i'll take a look... i have used that program in the past but could only get it to spit out one setup.exe file which would be huge, too big to fit on a cd in my case, unless i'm missing something about the program?
0
 
LVL 27

Expert Comment

by:Dabas
ID: 9921820
jmingo:
Both PDW and Inno compress your files as much as they can.
I have NEVER had a case where the setup is as big as you are describing.
Not even half the size of a CD.

If one of your files is so big, then you can still use the PDW and ask it to do multiple cabs.
As far as I can remember you can specify how big you are allowing the cab to be.

Dabas
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 1

Assisted Solution

by:awabid
awabid earned 83 total points
ID: 9922447
Hello
Use winzip self extractor 2.2 to make a single zip file, which will install automatically. You can configure it to make multiple cds or files. Try it out.... I use the same software to make my projects go onto the cds. Please register before using that. You can get it from http://www.winzip.com

Happy Deploying the projects :)

A W Abid
0
 

Author Comment

by:jmingo
ID: 9944161
in PDW it only allows me to select up to 2.88MB cab files.... i suppose i could use that, but then there would be a good 500 or so cab files in some cases... which i suppose i could do.

i'm going to look for a tutorial for PDW.

i may also try winzip, but i was looking for a more professional looking setup. i suppose i could unzip the files, and program a progress bar in VB.
0
 

Author Comment

by:jmingo
ID: 9944210
do anyone have programming examples of a progress bar copying files across multiple cd's??
0
 
LVL 27

Expert Comment

by:planocz
ID: 10270323
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from jmingo from 12/15/2003 comment
Delete/Refund is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0
 
LVL 27

Expert Comment

by:Dabas
ID: 10274387
planocz:
Disagree.
Quite a few good solutions were recommended, hence question has PAQ value.
Questioner was being unrealistic. PDW, Inno or WinZip are all acceptable solutions in my opinion.
Suggest PAQ/Split Dabas(PDW), Sethi (Inno), awabid (WinZip)

Dabas
0
 
LVL 18

Expert Comment

by:Sethi
ID: 10278622
I agree with Dabas
0
 
LVL 27

Expert Comment

by:planocz
ID: 10279880
I will leave a recommendation in the Cleanup topic area that this question is:
Delete/Split Dabas, Sethi, awabid
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer

0
 
LVL 27

Expert Comment

by:Dabas
ID: 10280152
planocz:
I was not aware there was a delete/split.
If I am right, I suggest PAQ/split

Thanks for listening

Dabas
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

20 Experts available now in Live!

Get 1:1 Help Now