Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

Change resources of exe file

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
herr_apfelschnitt
Asked:
herr_apfelschnitt
  • 3
1 Solution
 
ginsonicCommented:
listening
0
 
GwenaCommented:
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
 
DragonSlayerCommented:
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
 
DragonSlayerCommented:
here's another one as well
http://www.gdgsoft.com/tpf/index.asp

0
 
DragonSlayerCommented:
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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now