tags:

views:

117

answers:

4

I know this can be done. Can you show how to create a .net exe which also can be opened as a zip file with any zip file browser?

A: 

May be better than that you can use .NETZ Tool

 netz -s app.exe lib1.dll lib2.dll
Jirapong
+1  A: 

You basically want to create a self executing ZIP file. Have a look at this. At least that is assuming what you mean, if not please provide further details...

RichardOD
+2  A: 

Probably you meant a self extracting file, but I found your question interesting because there is a way to make a file that can be opened both as a jpeg and as zip like this:

(in Windows command line)

copy /b image.jpg + zipped_file.zip combo.jpg
Nick D
That's awesome. Now I know where to stash my.....credit card info?
Shadow
No your credit card info will be protected by NTFS Alternate Data Streams (support.microsoft.com/kb/105763).But seriously, the copy trick seems to be what I needed.
zproxy
A: 

DotNetZip makes self-extracting zip archives, and you can include a command to run on extract.

see also: Creating a Zip Extractor

Cheeso