Computing.Net > Forums > Programming > .NET EXE compressor?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

.NET EXE compressor?

Reply to Message Icon

Name: Leo the 28C (by Sulfurik)
Date: June 24, 2005 at 17:27:39 Pacific
OS: Windows XP SP2
CPU/Ram: 1.4 GHz/480 MB
Comment:

Hello everyone! :D
I want to know if there's a program like UPX (Ultimate Packer for eXecutables) for .NET executables? I mean, something to make them smaller? I added a picture to a 48MB EXE and it went to 60MB when the picture was only 15.2KB...
Thanks! ;)

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Giving out blank CD's in my FTP server! :D



Sponsored Link
Ads by Google

Response Number 1
Name: borelli35
Date: June 24, 2005 at 19:10:38 Pacific
Reply:

===============================================================
A Windows executable is a Windows executable. That has not changed since the advent of Windows x-exe format with Windows 3.01. What makes Windows apps differ from each other are the libraries that support them. Unless they decided to do something different with the .NET framework (which I have heard nothing about) then you are still dealing with just another Windows executable.

John W. Borelli
IT Specialist
Hawkeye Security
borelli35


0

Response Number 2
Name: Leo the 28C (by Sulfurik)
Date: June 25, 2005 at 00:08:44 Pacific
Reply:

No, .NET is different, it's "intermediate" code or something like that... it's not just a standard Windows executable... :P
Thanks! ;)

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Giving out blank CD's in my FTP server! :D


0

Response Number 3
Name: secrets
Date: June 25, 2005 at 11:38:53 Pacific
Reply:

Sulfurik is right .Net is not a standered exe its a intermediate code that can run on any plateform if that plateform has .net clr(Common Language Runtime).


0

Response Number 4
Name: borelli35
Date: June 25, 2005 at 19:39:36 Pacific
Reply:

===============================================================
In that case, is there any reference on the differences in executables or as it is termed here; intermediate code? I would love to examine and learn more about it. (I just can't stand not to know something like this...) :-)

John W. Borelli
IT Specialist
Hawkeye Security
borelli35


0

Response Number 5
Name: Leo the 28C (by Sulfurik)
Date: June 26, 2005 at 19:53:00 Pacific
Reply:

Yeah, here's a description on CLR: ;)
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/theshow/Episode020/default.asp
I'd also like to tell you that if you get Mono on Linux, Mac OS X and some other platforms, then you can also run CLR EXE's there! :D
Thanks! ;)

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Giving out blank CD's in my FTP server! :D


0

Related Posts

See More



Response Number 6
Name: anonproxy
Date: June 27, 2005 at 18:19:44 Pacific
Reply:

Last I checked, all UPX does is compress the binary and decompress it before it's executed. There is a similar tool for .NET called .NETZ.

.NET executables are generally PE binaries. You could very well put ".DLL" or ".EXE" as the extension, but it doesn't change the format or contents. However, you do specify to the compiler what packaging to use (ex. /t:exe).

You can learn a little more about PE from the Wikipedia article (I actually wrote most of it).

If you want technical details on the .NET runtime, MSDN magazine had an article on CLR internals recently. An easier to chew description is in this Powerpoint {1.67MB). The best source is the EMCA CLI specification, but it's hefty.


0

Response Number 7
Name: jcollake
Date: July 20, 2005 at 00:07:38 Pacific
Reply:

Actually, UPX and other true executable compressors compress the portions of the native image that can be compressed without side effects. Also substantial restructuring of the physical image is done. At runtime, the image is decompressed and reconstructed in memory.

NETZ does something different. In compresses the ENTIRE image of the .NET Portable Executable. Read: It doesn't modify the physical image and add a decompression stub like UPX and other true executable packers. It then attaches the compressed image to a STUB. This stub is a whole different image that has some resources from the .NET executable copied to it. At runtime the stub decompresses the entire image of the original .NET PE and invokes it using .NET's ability to load and invoke PE image from memory.

These two methods are completely different in implementation.

Jeremy


0

Response Number 8
Name: Leo the 28C (by Sulfurik)
Date: July 21, 2005 at 21:14:12 Pacific
Reply:

Hmm... I thought I'd answered this post already... O_O Sorry for late reply! No, but, I used .NETZ, and it compresses the file, but the compressed file + the zip.dll file is alot bigger than just the decompressed file... :S
Thanks! ;)

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Ruffle Mayo says ROFLMAO! :D


0

Response Number 9
Name: guest12345678
Date: July 22, 2005 at 08:13:22 Pacific
Reply:

Use .NETZ only for applications bigger than 150KB.

Read more at http://www.st.informatik.tu-darmstadt.de/static/staff/Cepa/tools/netz/examples.html


0

Response Number 10
Name: Leo the 28C (by Sulfurik)
Date: July 22, 2005 at 19:05:32 Pacific
Reply:

"Use .NETZ only for applications bigger than 150KB."
Exactly.
Thanks! ;)

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Ruffle Mayo says ROFLMAO! :D


0

Sponsored Link
Ads by Google
Reply to Message Icon

VB Data/Read Command? VB Listview Problem



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: .NET EXE compressor?

Need to access cdrom in config.sys www.computing.net/answers/programming/need-to-access-cdrom-in-configsys/15311.html

batch files www.computing.net/answers/programming/batch-files/18069.html

Redirected Output To HTML www.computing.net/answers/programming/redirected-output-to-html/19029.html