Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a bunch of self extracting .EXE files that I'm using 7-Zip to extract. I only want files to be overwritten with newer versions. The 7-Zip extract dialog only gives me the option to overwrite files without asking, not about which file wins. The dialog seems to imply that the newly extracted file will always overwrite the existing file, regardless of timestamp.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I doubt that any of the sfx front ends allow for this. You'll probably have to use the archive's extraction utility to do this. 7-zip does have some alternate sfx modules available from it's SourceForge project page, maybe one of those will give you that feature.

share|improve this answer
    
I see what you mean - do you know if the file overwrite mode behavior is a function of the tool that creates the archive (whether it's a .zip or sfx) or the extraction tool? Id have to assume that an extraction tool could support this regardless of the packaging method? –  Howiecamp Dec 12 '10 at 18:30
    
Your assumption is correct -- it's part of the extraction tool. In the case of an SFX, the extraction tool is simply added to the beginning of the archive, but that doesn't prevent you from using 7-Zip (or any other archive utility) directly to extract the file. –  afrazier Dec 13 '10 at 14:04
    
@afrazier - Nuts. So given this here's my thoughts - I have a ton of these self extracting .EXEs I need to extract - they are a backup of a file system which has a common root, and these .EXEs each contain portions of the directory tree. If I wanted to build this tree and have the most recent version of a file overwrite an older version, might the easiest way to do this to extract all the .EXEs (I could script this) into their own dedicated directories and then use another script to do the copying of the data into a common root? –  Howiecamp Dec 13 '10 at 16:23
    
That would work. You're going to have to make sure that your extraction tool correctly restores modification timestamps -- most do, but it's something that needs verified. –  afrazier Dec 13 '10 at 17:05
    
@afrazier - Good point about the modification timestamp. Not to mention I have to make sure that the modification timestamps are preserved in the zip file in the first place! –  Howiecamp Dec 13 '10 at 17:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.