Extracting .exe executables and back again using 7-Zip?

4

I figured out, by accident, that I can extract .exe executables (what for?).

Though the files make no sense whatsoever, how do I put those extracted files back into an .exe executable?

Grumpy ol' Bear

Posted 2009-10-20T16:12:22.287

Reputation: 5 313

Answers

4

Many installers use self-extracting archives (SFX) to pack a compressed file archive together with the programming necessary to extract the archive. With SFX, you don't need an external application to extract the files. Historically, this avoided the problem of downloading a program archive and not having an extraction tool.

WinZip/WinRAR/7Zip and similar archiving utilities allow you to create an SFX archive containing any files you like. Some of these tools may allow you to "edit" an existing SFX .EXE, by allowing you to replace a file in the archive with an updated version of the file.

The files you extracted are probably components of a program, and depending on the program might include a separate installer (.msi), a program (.exe), code libraries (.dll), documentation (.txt, .doc, .html, etc), and/or any of a wide variety of other filetypes.

quack quixote

Posted 2009-10-20T16:12:22.287

Reputation: 37 382

I believe Don Salva isn't talking about self-extracting archives. There are some kinds of executable files (.exe) that can be extracted with 7-zip (if you right-click it and choose the appropriate option) and execute as a normal program when you double-click it. – freitass – 2014-06-24T16:37:25.360

2

Using 7-Zip to open executable files is generally useful for installers that you don't want to install, either because of one or two files needed, or an application can run portably and install isn't an option with your permissions.

Last time I checked (I could be outdated here) 7-Zip couldn't put the files back in, but if you want to make a self-extractor for pure unzipping files, 7-Zip can do that.

If you want to edit the installer there are separate programs for that.

Davis

Posted 2009-10-20T16:12:22.287

Reputation: 321

What program does this. Yes 7zip does not work and I need to edit an ini file for a bios exe. Winrar (free version) does not allow either. – Bhikkhu Subhuti – 2016-03-11T01:28:11.867

Forget this question, I just realized I can run the unpacked executable in an extracted directory. "Thinking inside the box" (or compresses file "box") – Bhikkhu Subhuti – 2016-03-11T02:43:46.910