Solved

Add file, into Executable

Posted on 2001-07-19
5
128 Views
Last Modified: 2010-04-06
How do I "paste" a file into a executable (let's say it is a zip-file, the executable is going to extract)? Just like WinZip is doing it with Self-Extractor.
0
Comment
Question by:easysoft_studios
5 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
Comment Utility
Hi... sometimes it's easier (and relatively 'cheaper') to search for PAQ before posting a question :)

Anyway, check out these article:
http://www.experts-exchange.com/jsp/qShow.jsp?qid=10314362
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20091498

Also:
http://www.ec-software.com/delphi/backfile.zip
http://www.geocities.com/gacarpenter386/


DragonSlayer
0
 

Expert Comment

by:Richard_Yu
Comment Utility
Self extracting EXE - programming example:
http://www.ec-software.com/comppage.htm
TRessourceStore:
http://www.torry.net/codertools.htm
0
 
LVL 5

Accepted Solution

by:
Gwena earned 50 total points
Comment Utility
It depends on whether you want to add the file to the exe at compile time (easy) or if you want to have a delphi program that can modify itself at runtime by adding files to it's own exe that can later be extracted.... I have some demos of the 2nd method on my site http://delphi.does.it

look at (the extractor) and the (new extractor) demos
the new one has cleaner source code :-)
0
 

Author Comment

by:easysoft_studios
Comment Utility
Thanks! That were the thing to do the job!
0
 
LVL 5

Expert Comment

by:Gwena
Comment Utility
I am glad that my crazy code was helpful to you :-)
Thanks for the points!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now