|
-
Jun 7th, 2007, 01:06 PM
#1
Thread Starter
Addicted Member
Want smaller program files?
http://upx.sourceforge.net/
I've used this when it first came out (around 3-4 years ago) and it did wonders for my programs! 50% packed was the norm. and it still runs like a standard EXE file, no unzipping, so messing around! One program i was able to reduce it's size by 88%!!!!! and still have it run like normal! I'm not advertising for them, nor do I care if you use it. But i thought for those people who may have multi meg programs, and need quick movibility of the files, might want to give it a try! Now i havent used any updated versions of this software, so not too sure what they've been up too. Just a friend of mine was asking about shrinking program size, and i'd thought hey, the VB Forum world might like this too. So, ENJOY!
-
Jun 7th, 2007, 01:12 PM
#2
Re: Want smaller program files?
Reminds me of lzexe, circa 1989.
I'd point out that if you're zipping up the exe (like in an install package), this technique gains you nothing. The only real use for it is if (like back in 1989) you're running without a hard drive. When your total storage capacity consists of a floppy disk, compressing executables really helps.
-
Jun 7th, 2007, 01:12 PM
#3
Re: Want smaller program files?
ASPack is another good one. Not sure how it compares to UPX, I haven't used UPX in a looong time. ASPack also works for DLL and OCX files.
The best thing you can do to minimize program (installation) size is limit the number of dependencies in your app and also use images correctly. ie: If you have a bunch of images that are used on multiple forms, put them all into a resource file and load them using the LoadResPicture() function. Those are just a couple things that are usually the cause of large installations and EXE sizes.
-
Jun 7th, 2007, 01:34 PM
#4
Re: Want smaller program files?
-
Jun 7th, 2007, 01:58 PM
#5
PowerPoster
Re: Want smaller program files?
http://en.wikipedia.org/wiki/Executable_compression has information on a number of types of packing program. Be aware that some of these programs use unorthodox methods to compress the EXE and the compressed EXE does NOT work the same way as the original. MEW, for instance, gave me better compression than any other program but I found that ToolTipText entries seemed to have been removed completely. Because I didn't know what other methods it used, I switched back and stopped using MEW.
And what Ellis Dee says is true, but the thing to think about is whether a compressed EXE would be smaller than a RAR compressed EXE...I've actually found that compressing the EXE with RAR after compressing with UPX, the file *has* got even smaller than RAR alone on occasion and only maybe 1-2k larger at worst
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
-
Jun 7th, 2007, 02:32 PM
#6
Addicted Member
Re: Want smaller program files?
This program works real well thanks 10/10
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|