Compressing problem

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Compressing problem

Post by alemrantareq » Sat Dec 13, 2008 12:34 pm

Hi everybody,
I'm using windows XP, I want to compress my rev app with exe compressor. I've tried with many compressors, but after compressing, the app doesnt work anymore. Does anybody know about any compressor by which I can compress my app ? :D

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Dec 13, 2008 3:16 pm

I use Revolutions de-/compress routines all the time and never had problems! Rev uses the G-Zip format, if I remember right.

See "compress" and "decompress" in the docs.

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Sat Dec 13, 2008 3:30 pm

The question isn't clear, but I rather think Tareq is trying to use something like this http://upx.sourceforge.net/ to make the executable file of a standalone smaller, rather than using Rev to zip and unzip files.

I have no idea whether any of these sorts of things will work with a Rev executable. It seems the principle is to run the compressed exe which expands itself on the fly into memory and executes itself from there. There is a file "compressor.exe" which is supposed to do this job for which there are warnings about Symbos Trojan, so some malware versions exist apparently.

I've got a suspicion that Rev won't like working with any such compressor anyway, but no experience of trying it.

To reduce the file size for distribution, I use 7-zip to make a self-extracting file, but on extraction the regular sized Rev standalone is fine by me.

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Post by alemrantareq » Mon Dec 15, 2008 10:59 am

Hi SparkOut,
Thanks for your reply. You've got exactly what I need.

There are some self-extracting softs which pack files into a stand-alone file, extract them to the temp/custom directory and then launch an executable.

But the exe compressors are quite different. They only compress the exe files; not extract them to another directory.

I found two benefits of these kind of softs; i) The compressed file takes less space and ii) The resources of the compressed file cant be modified by the hex editors (also changes the resources).

So, I actually need the exe compressors so that none can see or modify my rev app resources.

I've tried with upx which you've provided, but after compressing like the other compressors, the app works nomore.

Post Reply