473,394 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Compress .NET exe

I need suggestions on tools to compress dot net EXE's (its ridiculos how
large they are..)

I have a licenced copy of thinstall, but its old and have some bugs in it,
unfortunally they seems to have discontinued the support for it, and there
new system starts from $10.000. Ouch.

There is a opensource tool called NETZ, which sort of works, but my
application crashes later when using it (directly linked to if I compress it
or not)

So does anyone have a suggestion for a good tool for this purpose?

(I have no trouble paying for it if its good, not the 10000 range though)
I dont really care about encryption in the exe, im after just the
compression.

- Fredrik
Nov 21 '05 #1
10 4286
"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> schrieb:
I need suggestions on tools to compress dot net EXE's (its ridiculos how
large they are..)


Are you storing lots of ressources (bitmaps, sounds, ...) inside the binary?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Nope, not a single one.

But its a large application (lots of forms) that is updated everyday by
download (liveupdate-function) to hundreds of clients, its 18 meg
uncompressed, with zip or other compression its around 3MB
Saves alot of time if you count in all clients..

..NET exe is mainly plain text if you look at it hexadecimal it seems.

- Fredrik

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> schrieb:
I need suggestions on tools to compress dot net EXE's (its ridiculos how
large they are..)


Are you storing lots of ressources (bitmaps, sounds, ...) inside the
binary?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> schrieb:
But its a large application (lots of forms) that is updated everyday by
download (liveupdate-function) to hundreds of clients, its 18 meg
uncompressed, with zip or other compression its around 3MB
Saves alot of time if you count in all clients.


I am not sure if decompressing a ZIP or CAB archive on the client within the
updating process is sufficient:

ZIP files:

The Zip, GZip, BZip2 and Tar Implementation For .NET
<URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/>

The VB.NET Resource Kit contains zipping functionality too (note that the
Resource Kit is not available any more, so the answer applies for the case
that you already have a copy of the Resource Kit):

The Visual Basic .NET Resource Kit
<URL:http://msdn.microsoft.com/vbasic/vbrkit/>

It contains ComponentOne Zip for .NET:

ComponentOne ZipT for .NET
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14 &ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabI D=70>

Using J#'s zip functionality:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
<URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/>

..NET 2.0 will contain ZIP support too.

CAB files:

Microsoft Cabinet Software Development Kit
<URL:http://support.microsoft.com/?scid=kb;EN-US;310618>

You can build CAB files using the "MAKECAB.EXE" utility that is IIRC
included in Windows. For extracting CAB files, you can use Microsoft's
"EXTRACT.EXE", which is available on the Windows XP CD or as part of the
Windows XP Support Tools:

<URL:http://groups.google.de/groups?selm=u%24EaZ074EHA.1296%40TK2MSFTNGP10.phx. gbl>

Alternative you can use p/invoke on 'SetupIterateCabinet'. A VB6 sample can
be found here:

View and Extract CAB File Contents Programmatically
<URL:http://www.thescarms.com/vbasic/CabExplorer.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Been down that road and didnt like it.

Im still looking for a exe compressor that will render a valid win32 exe out
of the .NET exe.
(keep version number etc in the new compressed exe, just smaller size)

Cheaper then thinstall and more bugfree then netz...

- Fredrik

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O$**************@tk2msftngp13.phx.gbl...
"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> schrieb:
But its a large application (lots of forms) that is updated everyday by
download (liveupdate-function) to hundreds of clients, its 18 meg
uncompressed, with zip or other compression its around 3MB
Saves alot of time if you count in all clients.


I am not sure if decompressing a ZIP or CAB archive on the client within
the updating process is sufficient:

ZIP files:

The Zip, GZip, BZip2 and Tar Implementation For .NET
<URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/>

The VB.NET Resource Kit contains zipping functionality too (note that the
Resource Kit is not available any more, so the answer applies for the case
that you already have a copy of the Resource Kit):

The Visual Basic .NET Resource Kit
<URL:http://msdn.microsoft.com/vbasic/vbrkit/>

It contains ComponentOne Zip for .NET:

ComponentOne ZipT for .NET
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14 &ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabI D=70>

Using J#'s zip functionality:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
<URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/>

.NET 2.0 will contain ZIP support too.

CAB files:

Microsoft Cabinet Software Development Kit
<URL:http://support.microsoft.com/?scid=kb;EN-US;310618>

You can build CAB files using the "MAKECAB.EXE" utility that is IIRC
included in Windows. For extracting CAB files, you can use Microsoft's
"EXTRACT.EXE", which is available on the Windows XP CD or as part of the
Windows XP Support Tools:

<URL:http://groups.google.de/groups?selm=u%24EaZ074EHA.1296%40TK2MSFTNGP10.phx. gbl>

Alternative you can use p/invoke on 'SetupIterateCabinet'. A VB6 sample
can
be found here:

View and Extract CAB File Contents Programmatically
<URL:http://www.thescarms.com/vbasic/CabExplorer.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Herfried, this is off topic but do you know if VB.Net 2005 will have a
resource kit available?
--
Dennis in Houston
"Herfried K. Wagner [MVP]" wrote:
"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> schrieb:
But its a large application (lots of forms) that is updated everyday by
download (liveupdate-function) to hundreds of clients, its 18 meg
uncompressed, with zip or other compression its around 3MB
Saves alot of time if you count in all clients.


I am not sure if decompressing a ZIP or CAB archive on the client within the
updating process is sufficient:

ZIP files:

The Zip, GZip, BZip2 and Tar Implementation For .NET
<URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/>

The VB.NET Resource Kit contains zipping functionality too (note that the
Resource Kit is not available any more, so the answer applies for the case
that you already have a copy of the Resource Kit):

The Visual Basic .NET Resource Kit
<URL:http://msdn.microsoft.com/vbasic/vbrkit/>

It contains ComponentOne Zip for .NET:

ComponentOne ZipT for .NET
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14 &ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabI D=70>

Using J#'s zip functionality:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
<URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/>

..NET 2.0 will contain ZIP support too.

CAB files:

Microsoft Cabinet Software Development Kit
<URL:http://support.microsoft.com/?scid=kb;EN-US;310618>

You can build CAB files using the "MAKECAB.EXE" utility that is IIRC
included in Windows. For extracting CAB files, you can use Microsoft's
"EXTRACT.EXE", which is available on the Windows XP CD or as part of the
Windows XP Support Tools:

<URL:http://groups.google.de/groups?selm=u%24EaZ074EHA.1296%40TK2MSFTNGP10.phx. gbl>

Alternative you can use p/invoke on 'SetupIterateCabinet'. A VB6 sample can
be found here:

View and Extract CAB File Contents Programmatically
<URL:http://www.thescarms.com/vbasic/CabExplorer.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6
"Dennis" <De****@discussions.microsoft.com> schrieb:
Herfried, this is off topic but do you know if VB.Net 2005 will have a
resource kit available?


I don't know if Microsoft is planning a resource kit for VB 2005.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7
try upx.org

"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
I need suggestions on tools to compress dot net EXE's (its ridiculos how
large they are..)

I have a licenced copy of thinstall, but its old and have some bugs in it,
unfortunally they seems to have discontinued the support for it, and there
new system starts from $10.000. Ouch.

There is a opensource tool called NETZ, which sort of works, but my
application crashes later when using it (directly linked to if I compress
it or not)

So does anyone have a suggestion for a good tool for this purpose?

(I have no trouble paying for it if its good, not the 10000 range though)
I dont really care about encryption in the exe, im after just the
compression.

- Fredrik

Nov 21 '05 #8
Does not work with .NET exe's

"Morgan" <ab**@senditon.com> wrote in message
news:uG**************@TK2MSFTNGP14.phx.gbl...
try upx.org

"Fredrik Melin" <mel@no_spam_for_me.dacsa.net.nospam> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
I need suggestions on tools to compress dot net EXE's (its ridiculos how
large they are..)

I have a licenced copy of thinstall, but its old and have some bugs in
it, unfortunally they seems to have discontinued the support for it, and
there new system starts from $10.000. Ouch.

There is a opensource tool called NETZ, which sort of works, but my
application crashes later when using it (directly linked to if I compress
it or not)

So does anyone have a suggestion for a good tool for this purpose?

(I have no trouble paying for it if its good, not the 10000 range though)
I dont really care about encryption in the exe, im after just the
compression.

- Fredrik


Nov 21 '05 #9

The .NETZ tool has been updated and a few bugs have been corrected.

Check the latest version at http://tinyurl.com/9nbzv

It compressed the entrire application automatically, no need to writ
any code and its free

--
guest12345678Posted from http://www.pcreview.co.uk/ newsgroup acces

Nov 21 '05 #10
as I stated in my original post, already tried NETZ and it seems to work,
but application crashes later when running it. (when you uses external
resources dll's)

Gonna look at the source for it, but was hoping there was more out there.
"guest12345678" <guest12345678.1skt7b@> wrote in message
news:Lu********************@giganews.com...

The .NETZ tool has been updated and a few bugs have been corrected.

Check the latest version at http://tinyurl.com/9nbzv

It compressed the entrire application automatically, no need to write
any code and its free.
--
guest12345678Posted from http://www.pcreview.co.uk/ newsgroup access

Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tony | last post by:
Hello, Any assistance would be appreciated: As the subject suggests I am trying to gunzip files using the Compress::Zlib module. The following is basically the code that I am working with: ...
0
by: estevan | last post by:
Some questions... 1 I would like to use compress protocol I do this MYSQL* m = new MYSQL; m.option.compress = true; unsigned int Flag = 0; Flag = Flag | CLIENT_COMPRESS;
3
by: Edward | last post by:
Thanks to Bob Powel (http://www.bobpowell.net/onebit.htm) I'm able to compress an image. However, this method takes a long time to compress an image. Does anyone know a quicker way? (The images I...
2
by: Jean-Marc Blaise | last post by:
Hi, I get a SQL2009C when using the 'compress' option for backup, but the util_heap_sz does not blow if I do not use the 'compress' option. What is the overhead induced by the compress option in...
5
by: ad | last post by:
I used use SharpZipLib to compress files in disk. But now I want to compress stream into another stream in memory(the stream not associated with disk file) My pseudo is: Stream...
8
by: Jose L. Velazquez | last post by:
Hi all, I have made a webservice that returns an XML, but sometimes the connection is so slow and there is a lot of data to be returned. I would like to know if it is possible to send this data...
6
by: Champika Nirosh | last post by:
Hi, I have two machine where I needed to have a extended TCP/IP protocol to make the link between the two machines Mean,I need to write a application that compress every data the machine send...
6
by: Adriano | last post by:
Can anyone recommend a simple way to compress/decomress a String in .NET 1.1 ? I have a random string of 70 characters, the output from a DES3 encryption, and I wish to reduce the lengh of it, ...
5
by: zgh1970 | last post by:
Hi, Friends, default DB2 compression library. I am wondering if this option will have any new restriction on RESTORE in the following. (Can I used that backup imsage for restore at the...
4
by: Lennart | last post by:
I heard a rumor that compress is only availible in Enterprise Edition in 9.5, can anyone confirm/reject this rumor? /Lennart
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.