Results 1 to 4 of 4

Thread: help me about the size of the setup.exe files in vb .

  1. #1
    Guest

    Angry

    hi pals
    I made a very very simple program consisting of only one form YES ONLY ONE FORM and nothing more, but after making a setup.exe it takes more than a megabyte .
    I WANT TO MAKE MY SETUP.EXE MUCH MORE SMALL
    HELP HELP WHAT MUST I DO ?

    thank you for your reply
    sincerely yours rosana

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ottawa,ON,Canada
    Posts
    217
    Before you compile your executable make sure you go into both the References and the Components dialogs, remove all objects and references that you don't need in your project. Don't worry, it won't let you remove anything that you are currently using in your project. You'd be surprised what is in there by default, depending on the version of VB that you are using.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    *sigh*

    Just because your application is only one form doesn't mean its small... I could have on that form a Common Dialog Box, Rich Text Box, maybe a Slider bar and a MS Flexi Grid and that would blow the entire application out several times!!!

    If I included a Database DAO control on there as well then it would try and include the MDAC installation file which is 2MB in itself!!!!

    The heart of the problem is that Windows doesn't come standard with a lot of the things you do in VB... even the main core object model which MUST be included with all installations that use VB (MSVB60VM.DLL for VB 6) is over 2MB in size.


    You might be able to reduce the size a little but other than that you will just have to put up with what the Deployment Wizard puts in your executable unless you want to write the installer yourself in something like Wise InstallBuilder or InstallShield.


    Hate to tell you this but....

    That's Life!!!

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Well,

    if you want small exe's in a visual basic (like) language (basic based) try RapidQ (it'll even let you compile on linux and it's free!) the interface speed is good but the math is slow because its byte code. you'll probably get a 280k stand alone exe that doesn't need installing.

    or Borland C++ builder so you can static link.

    VB is good if your customers / clients have the vbrun files (like your sending an upgrade ) because then you only have to send them a 40 - 60k file.

    If you could static link VB and everyone sent out 600k - 1mb stand alone apps then that's a lot of redundant vb code sitting in PCs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width