Page 1 of 3

[SOLVED] 7-Zip support for HoverBox

Posted: 13 Nov 2018 11:21
by Leito
Hey Don,

Seeing as you just added preview for RAR files, I'd love to be able to preview all archive formats supported by 7-Zip as well (RAR being one of them btw):

Image

Re: 7-Zip support for HoverBox

Posted: 13 Nov 2018 16:03
by Borut
+1

Re: 7-Zip support for HoverBox

Posted: 15 Nov 2018 09:13
by admin
All? Come on, give me some that you are actually using...

Re: 7-Zip support for HoverBox

Posted: 15 Nov 2018 11:27
by Borut
Well, I use 7z, rar, tar, zip. (In my view it would though be a nice general solution. Anyway, a nice-to-have feature, when I am concerned.)

Re: 7-Zip support for HoverBox

Posted: 15 Nov 2018 11:37
by highend
I (additionally) would need:
001 (multipart .rar archives)
cab (e.g. language files for windows)
iso (all my music is stored in these files)
bz2 / (tar.)gz (very often used for archives from linux)

Re: 7-Zip support for HoverBox

Posted: 15 Nov 2018 21:59
by elqasar2
With 19.30.0029 when I hover over a 7z file that is password protected, the Hover Box shows 'Unknown error'.

Re: 7-Zip support for HoverBox

Posted: 15 Nov 2018 22:07
by Leito
I would add the following extensions that haven't been cited yet:
  • deb
  • rpm
  • tgz
  • vhd

Re: 7-Zip support for HoverBox

Posted: 15 Nov 2018 22:17
by pixelsearch
elqasar2 wrote: 15 Nov 2018 21:59 With 19.30.0029 when I hover over a 7z file that is password protected, the Hover Box shows 'Unknown error'.
It does same for me ("Unknown error") for rar files with passwords, but not for all of them.
It's a normal behavior in my case, here is the explanation : when you choose to password a rar file, you can also tick "encrypt file names" then :

1) If you choose both (password + encrypt file names), then it's normal that the hover box doesn't show anything (as all file names are encrypted inside the rar) and displays an error message.

2) If you choose to password only, then file names inside the rar are visible on the computer : opening such a rar file with winrar shows you the filenames followed by an asterix * (but you can't decode the files if you don't know the password). So in this 2nd case, it's normal that the Hover box shows the filenames too (as Winrar shows them), though the filenames appear without * in the hover box

Now is it the same for elqasar2'z 7zip files ?
i don't know but you got the idea with winrar, in case it needs to be tested the same way with 7zip.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 10:50
by admin
Thanks, folks, next version will handle all these things.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 14:29
by Leito
Thanks Don! :beer:

Forgot about that one: could you add the "ova" extension to the list as well? It is treated as a tar format by 7z.exe.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 14:30
by elqasar2
I still get 'Unknown error.' when hovering a password protected 7z with 19.30.0030.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 15:15
by admin
elqasar2 wrote: 16 Nov 2018 14:30 I still get 'Unknown error.' when hovering a password protected 7z with 19.30.0030.
What is returned?

Code: Select all

text runret('"<path to 7z.exe>" l "<path to 7z archive>"');
Or select the archive in the list and use this:

Code: Select all

text runret('"<path to 7z.exe>" l ' . quote(<curitem>));

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 15:36
by Borut
Sorry for interrupting with the following...

This seems not being resolved as expected:

Code: Select all

<xypath>\..\Uncompress
Also, I do not find this a good idea:
Note that if the path found in the INI does not exist XYplorer will try to automatically retrieve an existing path and update the INI value if successful.
Update:

Now I see that it is even not being resolved correctly in the address line. Is my expectation wrong - should one not use ".." for one level up?

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 15:57
by pixelsearch
Hi Don,
2 changes (out of 3) worked for me in beta... 30, i.e:

1) Both ini file lines were automatically updated after Hover box on Rar & 7zip, great !
ZipPathUnRAR=%ProgramFiles%\WinRAR\UnRAR.exe
ZipPath7zip=%ProgramFiles%\7-Zip\7z.exe

2) Creating a 7zip with encrypted file names option returns this, great !
Image

3) What didn't work is doing same for a rar file (password + encrypted file names)
=> "Unknown error" even in beta... 30

But it's not a problem if it can't be done for 3) , filenames won't show, so what ?
It's encrypted... or it's not a rar file (try rename a .txt to .rar and hover it, it will of course display "unknown error" !)

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 16:14
by elqasar2

Code: Select all

7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30

Scanning the drive for archives:
1 file, 5714618 bytes (5581 KiB)

Listing archive: D:\OfficeRTool2018Aug26.7z


Enter password (will not be echoed):


Break signaled