Solved

Add file, into Executable

Posted on 2001-07-19
5
133 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
[X]
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
5 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6300667
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
ID: 6300698
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
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 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
ID: 6350362
Thanks! That were the thing to do the job!
0
 
LVL 5

Expert Comment

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

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