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 installed 7-Zip on my machine and associated it with serveral archive file types.

When double clicking an archive (so far I have tried .zip, .7z and .bz2 files), a message box pops up telling me that 7-Zip cannot open this file as an archive. dialog screenshot

However, when I right click the file and select 7-Zip->Open as archive, it works just fine.

All the file type are associated to 7zFM.exe, the 7-Zip File Manager (as opposed to the 7-Zip GUI or command line).

share|improve this question
    
maybe the file is corrupted? –  picakhu Dec 12 '12 at 14:04
    
No, it happens on every archive file. And I can always open them using the context menu. –  Chris Dec 12 '12 at 14:29
    
Did you try an uninstall and reinstall of 7zip? –  Karan Dec 12 '12 at 18:03
    
@Karan Yes, twice already. –  Chris Dec 17 '12 at 7:26

2 Answers 2

up vote 3 down vote accepted

Some registry keys were pointing to an x86 version of 7-Zip, which for some reason can't handle being invoked directly on this machine. I am not sure whether this is a bug in the x64 version of 7-Zip or whether a x86 version was installed on this machine before and didn't uninstall cleanly.

The following registry keys referred to the Program Files (x86) directory. Changing those to refer to the Program Files directory fixed the problem.

HKEY_CURRENT_USER\Software\Classes\7z_auto_file\shell\open\command HKEY_CURRENT_USER\Software\Classes\Applications\7z.exe\shell\open\command HKEY_CURRENT_USER\Software\Classes\Applications\7zFM.exe\shell\open\command

share|improve this answer

You could try to reset the associations from within 7-zip File Manager. One thing to note, if you are using Windows 7, you need to run 7zFM as administrator so it can set the changes.

share|improve this answer
    
Thanks, this is a good idea I hadn't thought of yet. Unfortunately, this didn't fix it. –  Chris Dec 17 '12 at 7:34

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.