Extract not working

(imported topic written by rgiles279291)

I am downloading a file and then trying to extract it. The download is working (the file is there), but the extract is not. Any help would be greatly appreciated.

here is the action;

download http://www.trendmicro.com/ftp/products/pattern/lpt793.zip

continue if {(size of it > 25827080) of file “lpt793.zip” of folder “__Download”}

extract lpt793.zip

here is the log file:

16:20:48 -0600 - opsite5 (http://corpit18.milpitas.polycom.com:52311/cgi-bin/bfgather.exe/opsite5)

Command succeeded (evaluated true) continue if {(size of it > 25827080) of file “lpt793.zip” of folder “__Download”} (fixlet 2669)

Command failed (Unable to extract archive file.) extract lpt793.zip (fixlet 2669)

(imported comment written by BenKus)

Hi rgiles2792,

The “extract” command only works with files compressed with BigFix tools (like the software distribution wizard)… Here is a way to extract zip files using publicly available tools (visit http://www.info-zip.org/ to see more about this unzip project):

// download your extractor
download http://software.bigfix.com/download/redist/unzip-5.52.exe
continue if {(size of it = 167936 and sha1 of it = “e1652b058195db3f5f754b7ab430652ae04a50b8”) of file “unzip-5.52.exe” of folder “__download”}

// download your file
download http://www.trendmicro.com/ftp/products/pattern/lpt793.zip
continue if {(size of it > 25827080) of file “lpt793.zip” of folder “__Download”}

// run extractor
waithidden"{pathname of client folder of current site & “__download\unzip-5.52.exe”}" -o -j “{pathname of client folder of current site & “__download\lpt793.zip”}” -d “C:\somefolder”

I haven’t tested this… let me know if it works…

Ben

(imported comment written by rgiles279291)

That worked. Thank you

(imported comment written by SystemAdmin)

Hi Ben,

I am trying to do the same thing;

I tried the // run extractor command which is working on fixlet debugger; but when putting it inside a fixlet acion script, i can’t find extracted files in the “C:\somefolder” i guess this is the path to the requested folder path where the file should be extracted, no?

Another question,is it possible to use Winrar?

(imported comment written by SystemAdmin)

I wouldn’t use WinRAR since it is not freeware. I personally use 7za, which is the command line version of 7zip. I prefetch it to the machine and add it as a “utility” so it never has to be downloaded again. The command line was a little tricky, so here is an example:

prefetch 7za.exe sha1:4154dda4a1e2a5ed14303dc3d36f448953ff6d33 size:536064 http://server.domain.com/bigfix/7za.exe
 
utility __Download/7za.exe
 
waithidden "__Download/7za.exe" x __Download/archive.7z -o__Download

That command line will work with any format that 7z and Zip formats, but I prefer to use 7z as it compresses a bit better. The files will be extracted into the “__Download” folder, so you can then you can run an installer or do whatever you want to do with them.

Did you have a .html file open as well when it wasn’t working? The extract panel won’t activate until you have a document open to extract to. try to use 7zipguides.