View Full Version : Is there a way of checking to see what files are in a compressed setup.exe?
9th January 2008, 13:27
Is there a way of checking to see what files are in a compressed setup.exe?
Kind of like looking at a zip file to see what is inside?
I want to run a certain exe only if it is included. Is there a way to check?
9th January 2008, 15:08
Yes, with 7-zip: right-click > extract (if it's an NSIS installer, doesn't work for most/all others).
9th January 2008, 15:21
Thanks but how can I check programatically at run time if a file exist in the setup.exe I am running?
9th January 2008, 15:34
Maybe the command line version of 7-zip will help you.
9th January 2008, 16:35
7z l setup.exe produces a list of all files inside setup.exe.
(no idea how to search the output from NSIS (guess that's what you want), but it should be possible)
9th January 2008, 17:17
7za.exe is the stand alone command line version you can use.
Best idea would be to send the output to a file (either directly using one of 7za's command line switches if there is one or using cmd.exe ... > file.log) and parse the log with one of the functions in FileFunc.nsh (or a custom function using FileRead etc).
9th January 2008, 17:57
This has been useful even if I don't have the answer I was originally looking for...
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.