Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distributing a VB6 exe

Status
Not open for further replies.

jbrowne

Programmer
Feb 1, 2000
182
IE
<br>&nbsp;&nbsp;&nbsp;&nbsp;I've only recently started using VB6 (VB5 and VB3 up until this) and I'm having difficulty with the distribution wizard. I've wrote a small program - only 100kb but when I package it to distribute it with the VB6 wizard, the distribution package is 45 Mb. Is this normal or am I doing something wrong. It seems to be packaging half my machine for such a small program. The program consists of 1 form accessing a watcom database and using 4 crystal reports. Also the installation is not running cleanly on the clients machine - its giving registry problems and access violation problems.Is there any better way to distribute it to a clients machine.<br>&nbsp;
 
its probally packing all the ActiveX controls, and Runtime libraries that you used, I would not use too many activeX, also some of the more common ones you do not need to distribute, also the runtime file like the msvb60.dll somehting like that, you probally dont need to send that since almost everyone has that in their windows system directory. , its just seems to be trying to pacxk up all the dependencies that one would have if they didnt have a single ocx, dll that you used. if its a rather simple program, I dont see a problem with just sending the exe ziped up, instead of using the distribution wizard, try just copying the exe to a couple friends computers, and see if it runs fine, might give you a brief idea of whats needed most of the time. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
I find that quite odd. When I used the package and deployment wizard to package my thesis (around 1 meg) it gave me a distributable of about 4.5 Mb.<br><br>fenris
 
to clear things up, not all the actual code you use resides inside the Exe, VB is partily interpreted, and some features such as activeX, their code remains in the OCX file, meaning there is the executable, then there are dependencies, like the VB6 Runtime file(which contains almost all the command calls for VB language) is about over 1.4 megs, then there are other dependencies, like any activeX dlls, or controls you used in your application, and any references. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
My reply is for jbrowne question.<br><br>Hi Jbrowne,<br><br>First of all, when you make your deployment package VB compile your codes and incorporate runtime dll, to run your exe without any additional runtime libraries except activeX on your client machine. <br>As you said that you are using Crystal reports then you need to add Crystal dependency file and control lib file with your deployment package. It will resolve your registry problem if the target machine is Windows 98 or Window NT.<br><br>Here is another matter to consider if you trying to deploying your package on Windows 95, then it requires some pre-requisition before start installation of your package. The pre-requisit is to install dcom98.exe on your target machine and then install you package. This is all because when you are developing your project on windows 98 and trying to deployment on Window 95 machine. Actually VB use new veriosn of ole automation.<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top