[Webinar] Streamline your web hosting managementRegister Today


Smaller Setup Files?

Posted on 2000-02-08
Medium Priority
Last Modified: 2010-05-02
I made a very very simple program that I want to send to friends but they are always missing the VB run time files.  Is there a way to make a file where I can just send it out?  I don't want them to HAVE to run a setup program.
Question by:treyjeff
  • 2

Expert Comment

ID: 2500909
VB programms required run time files they don't use the compiler like C++ where you don't need it.
LVL 12

Accepted Solution

mark2150 earned 90 total points
ID: 2500959
You have no choice. You'll have to build a setup and have them run it at least once. After they've installed it the first time you can just send them the .EXE as you make changes. If you add a new control that requires additionall .DLL's or .OCX's  you'll have to rebuild the SETUP and install again.

Sorry. This is how it works by design.


Author Comment

ID: 2501044
I'd give you both marks but can only give one.  That quite frankly sucks about VB :)
LVL 12

Expert Comment

ID: 2503747
Well it does and it doesn't. Yes, it's a PITA that you can't just ship a .EXE file out and expect it to run on a "cold" install, but there is a method to their madness.

You see by sending the .DLL's along with the app you can be sure that the target system gets the correct support files no matter what particular flavor of windows they have. The SETUP.EXE program is smart enough NOT to overwrite the files on the target system if the target has newer versions.

Also, if you compiled everything into one (gonna be HUGE) .EXE then you essentially "freeze" the program with the configuration on *your* development box. This would limit printer selections, etc. By shipping the .DLL's seperately the .EXE size is kept wayyyy down and if the target system gets new stuff over the development box, your software automatically gets the enhancements too. No recompiling, no fiddling.

This allows the OS to grow and all the programs to track right along with it. This is part of M$'s "infinitely extensibly" OS design concept. It's a good idea, occassionally poorly implemented.


Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

591 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