[SOLVED] 7-Zip support for HoverBox

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

[SOLVED] 7-Zip support for HoverBox

Post by Leito » 13 Nov 2018 11:21

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: 1374
Joined: 19 Oct 2010 19:29

Re: 7-Zip support for HoverBox

Post by Borut » 13 Nov 2018 16:03

+1
Win 7 Pro 64bit

admin
Site Admin
Posts: 48498
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: 7-Zip support for HoverBox

Post by admin » 15 Nov 2018 09:13

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

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

Re: 7-Zip support for HoverBox

Post by Borut » 15 Nov 2018 11:27

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 7 Pro 64bit

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

Re: 7-Zip support for HoverBox

Post by highend » 15 Nov 2018 11:37

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 or highend (at) web (dot) de

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

Re: 7-Zip support for HoverBox

Post by elqasar2 » 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'.

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

Re: 7-Zip support for HoverBox

Post by Leito » 15 Nov 2018 22:07

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

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

Re: 7-Zip support for HoverBox

Post by pixelsearch » 15 Nov 2018 22:17

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: 48498
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: 7-Zip support for HoverBox

Post by admin » 16 Nov 2018 10:50

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

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

Re: 7-Zip support for HoverBox

Post by Leito » 16 Nov 2018 14:29

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: 109
Joined: 27 Oct 2017 14:04

Re: 7-Zip support for HoverBox

Post by elqasar2 » 16 Nov 2018 14:30

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

admin
Site Admin
Posts: 48498
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: 7-Zip support for HoverBox

Post by admin » 16 Nov 2018 15:15

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: 1374
Joined: 19 Oct 2010 19:29

Re: 7-Zip support for HoverBox

Post by Borut » 16 Nov 2018 15:36

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 7 Pro 64bit

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

Re: 7-Zip support for HoverBox

Post by pixelsearch » 16 Nov 2018 15:57

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: 109
Joined: 27 Oct 2017 14:04

Re: 7-Zip support for HoverBox

Post by elqasar2 » 16 Nov 2018 16:14

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