Solved

Change resources of exe file

Posted on 2002-03-27
5
179 Views
Last Modified: 2010-04-04
Is it possible, and if so, how, to change or add resources to an .exe from an external program? For example creating a self-extracting zip file by adding the zip resources to a small pre-compiled unzip program?
0
Comment
Question by:herr_apfelschnitt
  • 3
5 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 6899536
listening
0
 
LVL 5

Expert Comment

by:Gwena
ID: 6901477
Whenever I want to add stuff to an exe I just tack it onto the end... it works great... you can easily add stuff like mp3,jpg,wav or even other exe files. It's easy to get the data into a stream or string at runtime and use it or write it to disk. You can have your program add items to itself at runtime.. and it can extract things at runtime and also remove them from it's exe file on disk at the same time.  I can send you a simple demo if this sounds useful to you :-)

You could compress the items as you add them to the exe... then uncompress them when you extract... just like a winzip self extractor... when I do this I use an LZH component to do the compression... but you could use any compression code as long as it handles data in a stream.

0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 200 total points
ID: 6901554
You might want to check out

KGSExeComponent at http://www.krasimir.com/Components.htm

but if you want to do it yourself, here you go:

http://community.borland.com/article/0,1410,27979,00.html
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6901565
here's another one as well
http://www.gdgsoft.com/tpf/index.asp

0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6901587
oh, and finally, you might want to check out how Jordan does it for his InnoSetup software... check it out at www.jrsoftware.org and download the source for InnoSetup :)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

747 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

9 Experts available now in Live!

Get 1:1 Help Now