Archive: How to extract a .exe file?


How to extract a .exe file?
Hello,

I am trying to incorporate installation of 3rd party installer via nsis script installer. For that I need to extract the "3rdParty.exe" file. I tried using the nsisunz::Unzip dll method but it errors out saying "Error opening ZIP file".

Can anyone suggest me how can I extract .exe file?

Thanks in advance !!


Nobody can tell you how to extract your third-party installer, because it entirely depends on what installer it is.

Self-extracting rars/zips/whatever can be extracted using the proper command line parameters. Inno installers can be unpacked with innounp. NSIS installers can be unpacked using 7z. But what you want is probably to run the installer silently. Find out whether the 3rd party installer supports silent installation.


NSIS installers can be unpacked using 7z
in most times files are not present in destionatzion folders. try sandboxie to get a proper view.
for inno it is possible to rebuild the script. but not for nsis.

You can include the 3rd party installer just like one of your files, and then execute it (that's easier if it has a silent mode):

SetOutPath $PLUGINSDIR
File ThirdPartyInstaller.exe
ExecWait '"$PLUGINSDIR\ThirdPartyInstaller.exe" /S'
Using PlugInsDir as the folder to extract it means it will be removed when your installer is done.

Yes, I want to extract the 3rd party installer to run it in silent mode. The 3rd party installer is built using Install Shield. For me to access the setup.exe file which is built in install shield I need to extract the file 3rdParty.exe. I was expecting some general extractor which can extract a file if it is extractable.


MSG,

Can you please point me to a resource where I can find the commands which can be used to extract the .exe file. I tried searching net but I could not find useful info.


The 3rdParty.exe installer is an self extracting RAR file. I tried using Nsis7z plug-in to extract but it was of no help.

How I tried was: I just updated the example1.nsi file attached with the plug-in to include my 3rdParty.exe file and ran the exe. What I observed was it is copying the exe to the install dir path but it is not extracting it.

Any thoughts would be very helpful.