Archive: Is there a way of checking to see what files are in a compressed setup.exe?


Is there a way of checking to see what files are in a compressed setup.exe?
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?


Yes, with 7-zip: right-click > extract (if it's an NSIS installer, doesn't work for most/all others).


Thanks but...
Thanks but how can I check programatically at run time if a file exist in the setup.exe I am running?


Maybe the command line version of 7-zip will help you.

Stu


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)


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).

Stu


Thanks a bunch!
This has been useful even if I don't have the answer I was originally looking for...