[SOLVED] 7-Zip support for HoverBox

Features wanted...
Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

[SOLVED] 7-Zip support for HoverBox

Post 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
Last edited by Leito on 04 Jan 2019 07:49, edited 1 time in total.

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: 7-Zip support for HoverBox

Post by Borut »

+1
Win 10 Pro 64bit

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: 7-Zip support for HoverBox

Post by admin »

All? Come on, give me some that you are actually using...

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: 7-Zip support for HoverBox

Post 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.)
Win 10 Pro 64bit

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: 7-Zip support for HoverBox

Post 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)
One of my scripts helped you out? Please donate via Paypal

elqasar2
Posts: 239
Joined: 27 Oct 2017 14:04

Re: 7-Zip support for HoverBox

Post by elqasar2 »

With 19.30.0029 when I hover over a 7z file that is password protected, the Hover Box shows 'Unknown error'.

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: 7-Zip support for HoverBox

Post by Leito »

I would add the following extensions that haven't been cited yet:
  • deb
  • rpm
  • tgz
  • vhd

pixelsearch
Posts: 37
Joined: 21 May 2018 18:45

Re: 7-Zip support for HoverBox

Post 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.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: 7-Zip support for HoverBox

Post by admin »

Thanks, folks, next version will handle all these things.

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: 7-Zip support for HoverBox

Post 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.

elqasar2
Posts: 239
Joined: 27 Oct 2017 14:04

Re: 7-Zip support for HoverBox

Post by elqasar2 »

I still get 'Unknown error.' when hovering a password protected 7z with 19.30.0030.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: 7-Zip support for HoverBox

Post 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>));

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: 7-Zip support for HoverBox

Post 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?
Win 10 Pro 64bit

pixelsearch
Posts: 37
Joined: 21 May 2018 18:45

Re: 7-Zip support for HoverBox

Post 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" !)

elqasar2
Posts: 239
Joined: 27 Oct 2017 14:04

Re: 7-Zip support for HoverBox

Post 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

Post Reply