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
Solved

Change resources of exe file

Posted on 2002-03-27
5
183 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 155
Downloading email attachments 2 79
Delphi 2 69
Firemonkey allowing RTL on android 6 47
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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