Add file, into Executable

Posted on 2001-07-19
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.
Question by:easysoft_studios
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 6300667
Hi... sometimes it's easier (and relatively 'cheaper') to search for PAQ before posting a question :)

Anyway, check out these article:



Expert Comment

ID: 6300698
Self extracting EXE - programming example:

Accepted Solution

Gwena earned 50 total points
ID: 6301329
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

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

Author Comment

ID: 6350362
Thanks! That were the thing to do the job!

Expert Comment

ID: 6350978
I am glad that my crazy code was helpful to you :-)
Thanks for the points!

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 200
Making delphi communicate with a c# service 16 122
Base1 Encode/Decode 3 86
how to resize animated Gif image in delphi ? 1 45
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 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