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?
Asked
Active
Viewed 196 times
1
-
What does that even mean? You mean a self-extracting ZIP? http://kb.winzip.com/kb/index.php?View=entry&EntryID=179 – ctacke Sep 22 '09 at 12:26
-
1Why would someone want to do that? Futhermore I'd doubt that this is possible. Maybe you're mistaken an self extracing ZIP archive with an acutal application? – KB22 Sep 22 '09 at 12:26
-
It's possible. The PE file format uses a header. THe ZIP format uses a suffix. One file can have both. – MSalters Sep 22 '09 at 12:56
-
I guess the suffix block would be "end of central dir signature 0x06054b50" – zproxy Sep 22 '09 at 13:05
-
and to be clear, a self-extracting zip *is* an actual application. – Cheeso Sep 30 '09 at 23:10
4 Answers
2
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 Dandoulakis
- 42,588
- 16
- 104
- 136
-
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 Sep 22 '09 at 12:55
1
May be better than that you can use .NETZ Tool
netz -s app.exe lib1.dll lib2.dll

Jirapong
- 24,074
- 10
- 54
- 72
1
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
- 28,883
- 9
- 61
- 81
1
DotNetZip makes self-extracting zip archives, and you can include a command to run on extract.
see also: Creating a Zip Extractor