For whatever reason, the 64-bit Windows Installer doesn't seem to register the .7z file extension with the 7-Zip GUI (or with anything, as far as I can tell).

How do I go about doing it. A simple "open with"(7zG.exe) doesn't work, because 7-Zip apparently requires a command-line that doesn't fit the usual pattern for the shell invoking programs. I can't seem to divine what this syntax might be from the command line (/? -? --help all give 'invalid syntax' errors).

How do I set it up so that clicking on a .7z file opens the GUI?

  • If I remember correctly, the GUI executable is called 7zFM.exe. – Dennis Mar 1 '13 at 19:23
  • I use 64-bit installations of both Windows 7 and Windows 8 and in both cases the .7z is registered to Z-Zip in addition to WinRAR and WinZip. I simply used te current version of the installer. – Ramhound Mar 1 '13 at 19:25
  • 2
    Given that this question has been answered, why wasn't this question marked as answered? – LPChip Jul 11 '15 at 12:24

You can do this from within the program itself. Simply launch the 7-Zip File Manager as Administrator (this is important), and then click on the Tools menu and select Options. Here you can set your file associations for many types, not just the .7z extension.

  • 3
    This did it for me. I wonder why this answer was never accepted though... – LPChip Jul 11 '15 at 12:24
  • Worked for me on Windows 10. Thanks. – faintsignal Dec 27 '16 at 4:09
  • Forgive my ignorance... What file is that on the 7zip Download page? – jww Jan 31 '17 at 12:49
  • @jww That page has links for both the 32-bit and 64-bit installers. Either of these will do. My answer assumed you had already installed 7-zip to your computer. – Ben Richards Jan 31 '17 at 21:03

Looks like I gave up searching too soon.

The executable you want to associate .7z files with is the 7zFM.exe, not 7zG.exe. Doing that through "Open With" works as expected.

You can also do so from within the FileManager application by going to Tools > Options and selecting the formats there (this may only work if the app is run with admin privileges, though?).

You can also do this sort of thing from the command line using the commands ftype and assoc. The first sets up a type of file and the program used to deal with them. The second command can then be used to associate multiple extensions with the file type and hence the executable.

For example, to find out the settings on your machine for zip files:

ftype | findstr zip
assoc | findstr zip

To learn more about the commands you can do this:

help ftype
help assoc
  • Wow. This is quite nice. I had no idea that was there. – kmort Oct 16 '14 at 13:16
  • Nice! But where are the ddeexec entries? – Milind R Nov 21 '14 at 6:04

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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