Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reducing footprint
Message
De
31/01/2007 11:48:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01190036
Message ID:
01190946
Vues:
12
>Hi All,
>
>One of our applications is already at ~18 Meg, and includes some 60 frx's.
>What would be a good way to reduce the exe size?
>Can we and/or should we compile all the frx's into a dll?
>Any other ideas?

Sorry for coming into this so late, I was distracted elsewhere.

Depends on what you use for building the setup. I've found that Inno setup compiler has pretty good compression, and if you have the time to let it run a bit longer, can do much better. I'm using it at next-to-the-best compression, and it crunches the runtimes, about three megs of extra dlls, plus about 500 megs of data, ... a total of 530 megs altogether, into a setup.exe of just 80 megs. Keep in mind that I got a fair amount of integer fields in my tables, which don't compress so well.

A way to reduce the size of your exe nicely is to omit the debugging information when you build it. I use this bit of code for that:
MODIFY PROJECT {pjx name here} NOWAIT noshow
op=_vfp.Projects(1)
op.Debug=.f.
op.close()
RELEASE op

BUILD EXE "{full path to exe here}" FROM "{pjx name here}" recomp

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform