mcmilk / 7-Zip-zstd

7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard
https://mcmilk.de/projects/7-Zip-zstd/
Other
5.07k stars 300 forks source link

Can not open .zst archives directly via Explorer shell #23

Closed tskarman closed 7 years ago

tskarman commented 7 years ago

Associating .zst files with "C:\Program Files\7-Zip-ZStandard\7zFM.exe" via the Explorer context menu item "Open with" -> "Choose another app" and then double-clicking .zst files results in the following error message and in no opening of the archive.

Error:

Can not open file "some-directory-path\some-file-name.zst" as archive.

The same happens when associating the .zst file type via the built-in file association editor (Tools -> Options -> System).

What does work however is opening the file via the Explorer context menu item "7-Zip ZStandard" -> "Open archive".

This applies to .zst archives created and attempted to open with 7-Zip 17.00 ZS v1.3.0 R1.

mcmilk commented 7 years ago

I have no problems with that. Could you go again to the built-in file association editor (Tools -> Options -> System) and unset all the settings there and then re-set them again to 7-Zip ZS ?

What windows version do you have, I modified the .manifest files in this version... maybe it has sth. to do with that.

PS: You could also reach me via phone, just write an email with your number and I will call you... I think, this way, we will resolve the problem(s) faster...

tskarman commented 7 years ago

I tried your suggestions (with the new 17.00 ZS 1.3.0 R2 x64). No change.

But I think that I know what is happening. I have both 7-Zip vanilla (16.04 x64) and 7-Zip ZS. Even though I create the mapping via the 7-Zip ZS GUI (the vanilla GUI doesn't know the file type .zst), Explorer ends up invoking 7-Zip vanilla (at C:\Program Files\7-Zip\7zFM.exe) with the .zst path.

That seems strange, but you prob. have an idea as to why that might be happening (ID clashes or similar).

Thanks for your quick reply. I'd be happy to work out any further details via phone, just not today.

mcmilk commented 7 years ago

Hm ... I have no solution for this. I have installed also the vanilla and my version on the local Windows 7 x64 box. I can set the type .zst with 7-Zip ZS or Windows Explorer ... both seems to work fine.

mcmilk commented 7 years ago

@tskarman can I close this issue?

I have no real idea what goes wrong on this installation ... :-( Did you have this problem on other pc's as well ... or is it just one single one?

sl1pkn07 commented 3 years ago

i have the same issue. i have installer 7zip 19.00, and then install you dlls in the codecs folder

7z i show the zstd codec. but i can't extract it

PS C:\Users\sL1pKn07\Downloads> 7z i

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Libs:
 0  c:\program files\7-zip\7z.dll
 1  c:\program files\7-zip\Codecs\brotli-x64.dll
 2  c:\program files\7-zip\Codecs\flzma2-x64.dll
 3  c:\program files\7-zip\Codecs\lizard-x64.dll
 4  c:\program files\7-zip\Codecs\lz4-x64.dll
 5  c:\program files\7-zip\Codecs\lz5-x64.dll
 6  c:\program files\7-zip\Codecs\zstd-x64.dll

Formats:
 0               APM      apm           E R
 0               Ar       ar a deb lib  ! < a r c h > 0A
 0               Arj      arj           ` EA
 0 CK            bzip2    bz2 bzip2 tbz2 (.tar) tbz (.tar) B Z h
 0               Compound msi msp doc xls ppt D0 CF 11 E0 A1 B1 1A E1
 0      M        Cpio     cpio          0 7 0 7 0  ||  C7 q  ||  q C7
 0               CramFS   cramfs        offset=16 C o m p r e s s e d 20 R O M F S
 0       G  B    Dmg      dmg           k o l y 00 00 00 04 00 00 02 00
 0           E   ELF      elf            E L F
 0               Ext      ext ext2 ext3 ext4 img offset=1080 S EF
 0               FAT      fat img       offset=510 U AA
 0               FLV      flv           F L V 01
 0 CK            gzip     gz gzip tgz (.tar) tpz (.tar) apk (.tar) 1F 8B 08
 0               GPT      gpt mbr       offset=512 E F I 20 P A R T 00 00 01 00
 0      M        HFS      hfs hfsx      offset=1024 B D  ||  H + 00 04  ||  H X 00 05
 0        O      IHex     ihex
 0               Lzh      lzh lha       offset=2 - l h
 0  K     O      lzma     lzma
 0  K            lzma86   lzma86
 0      M    E   MachO    macho         CE FA ED FE  ||  CF FA ED FE  ||  FE ED FA CE  ||  FE ED FA CF
 0         P     MBR      mbr
 0               MsLZ     mslz          S Z D D 88 F0 ' 3 A
 0      M        Mub      mub           CA FE BA BE 00 00 00  ||  B9 FA F1 0E
 0               NTFS     ntfs img      offset=3 N T F S 20 20 20 20 00
 0           E   PE       exe dll sys   M Z
 0        O      COFF     obj
 0           E   TE       te            V Z
 0               Ppmd     pmd           8F AF AC 84
 0               QCOW     qcow qcow2 qcow2c Q F I FB 00 00 00
 0               Rpm      rpm           ED AB EE DB
 0               Split    001
 0      M        SquashFS squashfs      h s q s  ||  s q s h  ||  s h s q  ||  q s h s
 0 C    M        SWFc     swf (~.swf)   C W S  ||  Z W S
 0  K            SWF      swf           F W S
 0     FM        UEFIc    scap          BD 86 f ; v 0D 0 @ B7 0E B5 Q 9E / C5 A0  ||  8B A6 < J # w FB H 80 = W 8C C1 FE C4 M  ||  B9 82 91 S B5 AB 91 C B6 9A E3 A9 C F7 / CC
 0     FM        UEFIf    uefif         offset=16 D9 T 93 z h 04 J D 81 CE 0B F6 17 D8 90 DF  ||  x E5 8C 8C = 8A 1C O 99 5 89 a 85 C3 - D3
 0               VDI      vdi           offset=64  10 DA BE
 0       G       VHD      vhd           c o n e c t i x 00 00
 0               VMDK     vmdk          K D M V
 0               Xar      xar pkg xip   x a r ! 00 1C
 0 CK            xz       xz txz (.tar) FD 7 z X Z 00
 0               Z        z taz (.tar)  1F 9D
 0 C   F         7z       7z            7 z BC AF ' 1C
 0     F         Cab      cab           M S C F 00 00 00 00
 0               Chm      chm chi chq chw I T S F 03 00 00 00 ` 00 00 00
 0     F         Hxs      hxs hxi hxr hxq hxw lit I T O L I T L S 01 00 00 00 ( 00 00 00
 0               Iso      iso img       offset=32769 C D 0 0 1
 0     F G       Nsis     nsis          offset=4 EF BE AD DE N u l l s o f t I n s t
 0     F         Rar      rar r00       R a r ! 1A 07 00
 0     F         Rar5     rar r00       R a r ! 1A 07 01 00
 0 C      O   LH tar      tar ova       offset=257 u s t a r
 0        O      Udf      udf iso img   offset=32768 01 C D 0 0 1
 0 C SN       LH wim      wim swm esd ppkg M S W I M 00 00 00
 0 C   FMG       zip      zip z01 zipx jar xpi odt ods docx xlsx epub ipa apk appx P K 03 04  ||  P K 05 06  ||  P K 06 06  ||  P K 07 08 P K  ||  P K 0 0 P K

Codecs:
 0 4ED  303011B BCJ2
 0  ED  3030103 BCJ
 0  ED  3030205 PPC
 0  ED  3030401 IA64
 0  ED  3030501 ARM
 0  ED  3030701 ARMT
 0  ED  3030805 SPARC
 0  ED    20302 Swap2
 0  ED    20304 Swap4
 0  ED    40202 BZip2
 0  ED        0 Copy
 0  ED    40109 Deflate64
 0  ED    40108 Deflate
 0  ED        3 Delta
 0  ED       21 LZMA2
 0  ED    30101 LZMA
 0  ED    30401 PPMD
 0   D    40301 Rar1
 0   D    40302 Rar2
 0   D    40303 Rar3
 0   D    40305 Rar5
 0  ED  6F10701 7zAES
 0  ED  6F00181 AES256CBC
 1  ED  4F71102 BROTLI
 2  ED       21 FLZMA2
 3  ED  4F71106 LIZARD
 4  ED  4F71104 LZ4
 5  ED  4F71105 LZ5
 6  ED  4F71101 ZSTD

Hashers:
 0    4        1 CRC32
 0   20      201 SHA1
 0   32        A SHA256
 0    8        4 CRC64
 0   32      202 BLAKE2sp
PS C:\Users\sL1pKn07\Downloads> 7z x glibc-2.33-3-x86_64.pkg.tar.zst

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 10319397 bytes (10078 KiB)

Extracting archive: glibc-2.33-3-x86_64.pkg.tar.zst
ERROR: glibc-2.33-3-x86_64.pkg.tar.zst
Can not open the file as archive

Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0

seems zst or zstd is missing in formats

greetings

sl1pkn07 commented 3 years ago

seems if use your 7z installer. works ok. and now appears in formats

PS C:\Users\sL1pKn07\Downloads> 7z i

7-Zip 19.00 ZS v1.4.9 R2 (x64) : Copyright (c) 1999-2019 Igor Pavlov, 2016-2021 Tino Reichardt : 2021-04-06

Libs:
 0  c:\program files\7-zip\7z.dll
 1  c:\program files\7-zip\Codecs\brotli-x64.dll
 2  c:\program files\7-zip\Codecs\flzma2-x64.dll
 3  c:\program files\7-zip\Codecs\lizard-x64.dll
 4  c:\program files\7-zip\Codecs\lz4-x64.dll
 5  c:\program files\7-zip\Codecs\lz5-x64.dll
 6  c:\program files\7-zip\Codecs\zstd-x64.dll

Formats:
 0               APM      apm           E R
 0               Ar       ar a deb lib  ! < a r c h > 0A
 0               Arj      arj           ` EA
 0 CK            bzip2    bz2 bzip2 tbz2 (.tar) tbz (.tar) B Z h
 0               Compound msi msp doc xls ppt D0 CF 11 E0 A1 B1 1A E1
 0      M        Cpio     cpio          0 7 0 7 0  ||  C7 q  ||  q C7
 0               CramFS   cramfs        offset=16 C o m p r e s s e d 20 R O M F S
 0       G  B    Dmg      dmg           k o l y 00 00 00 04 00 00 02 00
 0           E   ELF      elf            E L F
 0               Ext      ext ext2 ext3 ext4 img offset=1080 S EF
 0               FAT      fat img       offset=510 U AA
 0               FLV      flv           F L V 01
 0 CK            gzip     gz gzip tgz (.tar) tpz (.tar) apk (.tar) 1F 8B 08
 0               GPT      gpt mbr       offset=512 E F I 20 P A R T 00 00 01 00
 0      M        HFS      hfs hfsx      offset=1024 B D  ||  H + 00 04  ||  H X 00 05
 0        O      IHex     ihex
 0  K            lzip     lz tlz (.tar) L Z I P 01
 0 CK            lz4      lz4 tlz4 (.tar) 0 x 1 8 4 D 2 2 0 4 00
 0 CK            lz5      lz5 tlz5 (.tar) 0 x 1 8 4 D 2 2 0 5 00
 0 CK            lizard   liz tliz (.tar) 0 x 1 8 4 D 2 2 0 6 00
 0               Lzh      lzh lha       offset=2 - l h
 0  K     O      lzma     lzma
 0  K            lzma86   lzma86
 0      M    E   MachO    macho         CE FA ED FE  ||  CF FA ED FE  ||  FE ED FA CE  ||  FE ED FA CF
 0         P     MBR      mbr
 0               MsLZ     mslz          S Z D D 88 F0 ' 3 A
 0      M        Mub      mub           CA FE BA BE 00 00 00  ||  B9 FA F1 0E
 0               NTFS     ntfs img      offset=3 N T F S 20 20 20 20 00
 0           E   PE       exe dll sys   M Z
 0        O      COFF     obj
 0           E   TE       te            V Z
 0               Ppmd     pmd           8F AF AC 84
 0               QCOW     qcow qcow2 qcow2c Q F I FB 00 00 00
 0               Rpm      rpm           ED AB EE DB
 0               Split    001
 0      M        SquashFS squashfs      h s q s  ||  s q s h  ||  s h s q  ||  q s h s
 0 C    M        SWFc     swf (~.swf)   C W S  ||  Z W S
 0  K            SWF      swf           F W S
 0     FM        UEFIc    scap          BD 86 f ; v 0D 0 @ B7 0E B5 Q 9E / C5 A0  ||  8B A6 < J # w FB H 80 = W 8C C1 FE C4 M  ||  B9 82 91 S B5 AB 91 C B6 9A E3 A9 C F7 / CC
 0     FM        UEFIf    uefif         offset=16 D9 T 93 z h 04 J D 81 CE 0B F6 17 D8 90 DF  ||  x E5 8C 8C = 8A 1C O 99 5 89 a 85 C3 - D3
 0               VDI      vdi           offset=64  10 DA BE
 0       G       VHD      vhd           c o n e c t i x 00 00
 0               VMDK     vmdk          K D M V
 0               Xar      xar pkg xip   x a r ! 00 1C
 0 CK            xz       xz txz (.tar) FD 7 z X Z 00
 0               Z        z taz (.tar)  1F 9D
 0 CK            zstd     zst tzstd (.tar) 0 x F D 2 F B 5 2 2 . . 2 8 00
 0 C   F         7z       7z            7 z BC AF ' 1C
 0     F         Cab      cab           M S C F 00 00 00 00
 0               Chm      chm chi chq chw I T S F 03 00 00 00 ` 00 00 00
 0     F         Hxs      hxs hxi hxr hxq hxw lit I T O L I T L S 01 00 00 00 ( 00 00 00
 0               Iso      iso img       offset=32769 C D 0 0 1
 0     F G       Nsis     nsis          offset=4 EF BE AD DE N u l l s o f t I n s t
 0     F         Rar      rar r00       R a r ! 1A 07 00
 0     F         Rar5     rar r00       R a r ! 1A 07 01 00
 0 C      O   LH tar      tar ova       offset=257 u s t a r
 0        O      Udf      udf iso img   offset=32768 01 C D 0 0 1
 0 C SN       LH wim      wim swm esd ppkg M S W I M 00 00 00
 0 C   FMG       zip      zip z01 zipx jar xpi odt ods docx xlsx epub ipa apk appx P K 03 04  ||  P K 05 06  ||  P K 06 06  ||  P K 07 08 P K  ||  P K 0 0 P K

Codecs:
 0 4ED  303011B BCJ2
 0  ED  3030103 BCJ
 0  ED  3030205 PPC
 0  ED  3030401 IA64
 0  ED  3030501 ARM
 0  ED  3030701 ARMT
 0  ED  3030805 SPARC
 0  ED    20302 Swap2
 0  ED    20304 Swap4
 0  ED    40202 BZip2
 0  ED        0 Copy
 0  ED    40109 Deflate64
 0  ED    40108 Deflate
 0  ED        3 Delta
 0  ED       21 LZMA2
 0  ED    30101 LZMA
 0  ED    30401 PPMD
 0   D    40301 Rar1
 0   D    40302 Rar2
 0   D    40303 Rar3
 0   D    40305 Rar5
 0  ED  4F71102 BROTLI
 0  ED  4F71104 LZ4
 0  ED  4F71106 LIZARD
 0  ED  4F71105 LZ5
 0  ED  4F71101 ZSTD
 0  ED       21 FLZMA2
 0  ED  6F10701 7zAES
 0  ED  6F00181 AES256CBC
 1  ED  4F71102 BROTLI
 2  ED       21 FLZMA2
 3  ED  4F71106 LIZARD
 4  ED  4F71104 LZ4
 5  ED  4F71105 LZ5
 6  ED  4F71101 ZSTD

Hashers:
 0   32      20A BLAKE3
 0    4        1 CRC32
 0   16      205 MD2
 0   16      206 MD4
 0   16      207 MD5
 0   20      201 SHA1
 0   32        A SHA256
 0   48      208 SHA384
 0   64      209 SHA512
 0    4      203 XXH32
 0    8      204 XXH64
 0    8        4 CRC64
 0   32      202 BLAKE2sp
jeff15110168 commented 2 years ago

hello - i installed all the codecs in "Codecs-x64" into C:\Program Files\7-Zip\Codecs but when i try right click -> 7-zip context menu -> extract here it gives me error "can not open file as archive". Any advice?

EDIT: I instead installed modern7z and it worked after using their .dll