slloyd
9th January 2008 14:27 UTC
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?
gaekwad2
9th January 2008 16:08 UTC
Yes, with 7-zip: right-click > extract (if it's an NSIS installer, doesn't work for most/all others).
slloyd
9th January 2008 16:21 UTC
Thanks but...
Thanks but how can I check programatically at run time if a file exist in the setup.exe I am running?
Afrow UK
9th January 2008 16:34 UTC
Maybe the command line version of 7-zip will help you.
Stu
gaekwad2
9th January 2008 17:35 UTC
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)
Afrow UK
9th January 2008 18:17 UTC
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
slloyd
9th January 2008 18:57 UTC
Thanks a bunch!
This has been useful even if I don't have the answer I was originally looking for...