[SOLVED] 7-Zip support for HoverBox

Features wanted...
pixelsearch
Posts: 28
Joined: 21 May 2018 18:45

Re: 7-Zip support for HoverBox

Post by pixelsearch » 16 Nov 2018 17:06

elqasar2 wrote:
16 Nov 2018 16:14

Code: Select all

7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30
Hi Don,
After reading elqasar2's post, I installed last 7-zip 18.05 on my computer, created a 7-zip file with password & encrypted file names, now results changed :
1) With last 7-zip version 18.05 (2018) :
Image

2) With version 7-zip 9.20 (2011) I had on my computer during 2011-2018 :
Image

But truly, my thought is you shouldn't work on that issue because it's not an issue : "unknown error" means the file (7zip, rar etc...) is passworded AND contains encrypted file names. Please dont spend your precious time on trying to get the correct message "cannot view encrypted archive" on so many archive extensions, depending on old or new version of each archiver etc...

If the file names show in Hover Box, that's great : it will mean the archive is not protected, or protected with a password only : that should be enough for all of us.
Last edited by pixelsearch on 16 Nov 2018 17:16, edited 1 time in total.

admin
Site Admin
Posts: 48499
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 17:13

Leito wrote:
16 Nov 2018 14:29
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.
Does this list OVA contents (if <curitem> is an OVA)?

Code: Select all

text runret('"C:\Program Files (x86)\7-Zip\7z.exe" l ' . "<curitem>");

admin
Site Admin
Posts: 48499
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 17:17

pixelsearch wrote:
16 Nov 2018 15:57
3) What didn't work is doing same for a rar file (password + encrypted file names)
=> "Unknown error" even in beta... 30
Can you do this then for that RAR file?

Code: Select all

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

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 17:24

admin wrote:
16 Nov 2018 17:13
Does this list OVA contents (if <curitem> is an OVA)?

Code: Select all

text runret('"C:\Program Files (x86)\7-Zip\7z.exe" l ' . "<curitem>");
Yes.

admin
Site Admin
Posts: 48499
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 17:26

Borut wrote:
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?
1. I did not say that relative path syntax is supported. :)

2. Why is it not a good idea? (I thought when you take your USB-XYplorer to various systems, it's a good idea when it tries to find those files anew when necessary...)

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

Re: 7-Zip support for HoverBox

Post by pixelsearch » 16 Nov 2018 18:42

admin wrote:
16 Nov 2018 17:17
Can you do this then for that RAR file?

Code: Select all

text runret('"<path to UnRAR.exe>" l ' . quote(<curitem>));
That's something new, never done that before, let's try... ok, Scripting menu => Try script... while file Test3.rar is selected (passworded & encrypted file names) :

text runret('"C:\Program Files\WinRAR\UnRAR.exe" l ' . quote(<curitem>));
quote()
----
F:\Test3.rar
runret()
----
"C:\Program Files\WinRAR\UnRAR.exe" l "F:\Test3.rar"
text
----
UNRAR 5.40 x86 freeware Copyright (c) 1993-2016 Alexander Roshal
Program aborted

**********************************************************************************
Now I run same script while Test4.rar is selected (password only)
quote()
----
F:\Test4.rar
runret()
----
"C:\Program Files\WinRAR\UnRAR.exe" l "F:\Test4.rar"
text
----
UNRAR 5.40 x86 freeware Copyright (c) 1993-2016 Alexander Roshal

Archive: F:\Test4.rar
Details: RAR 4

Attributes Size Date Time Name
----------- --------- ---------- ----- ----
* ..A.... 100 2018-11-16 18:45 Test4.txt
----------- --------- ---------- ----- ----
100 1

I join the 2 rar files in case it may help you, password to use is "test" (without quotes), they both contain a simple txt file.
Test3.rar
(228 Bytes) Downloaded 18 times
Test4.rar
(188 Bytes) Downloaded 16 times
Good luck Don

admin
Site Admin
Posts: 48499
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 18:56

That was too chaotic for me to understand. :mrgreen:
******************

Code: Select all

text runret('"<path to UnRAR.exe>" l ' . quote(<curitem>));
1) paste it into the Address Bar
2) fill in your <path to UnRAR.exe>
3) Select your file with encrypted names
4) press ENTER

What is returned?

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

Re: 7-Zip support for HoverBox

Post by pixelsearch » 16 Nov 2018 19:02

That was much simpler :)
It returns this (as in chaotic precedent post) :mrgreen:

UNRAR 5.40 x86 freeware Copyright (c) 1993-2016 Alexander Roshal

Program aborted

admin
Site Admin
Posts: 48499
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 19:11

So, so... "Program aborted". Well, that could mean anything. So, I will do nothing. It's good as it is now.

Thanks! :)

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

Re: 7-Zip support for HoverBox

Post by pixelsearch » 16 Nov 2018 19:47

No, thanks to you :)
As I said many times, don't do anything if file names are encrypted, everything is perfect !

Something interesting to remember with Winrar is :
* When password + encrypted file names, then when you double clic on the rar file name (like in my attached Test3.rar) the password window is immediately opened (i.e. Winrar main window doesn't appear so you can't see anything about the rar structure file, subfolders etc...), that's the meaning of the "Program aborted" in XYplorer, Winrar simply refuses to continue in this 1st case and it's normal.

* When password only (like my attached Test4.rar) and you double clic on the rar file, then Winrar main window opens immediately, it shows you the filenames (with * in the end) even if you'll have to provide password only now to open them, that's why XYplorer shows, in this 2nd case :

UNRAR 5.40 x86 freeware Copyright (c) 1993-2016 Alexander Roshal

Archive: F:\Test4.rar
Details: RAR 4

Attributes Size Date Time Name
----------- --------- ---------- ------ ----
* ..A.... 100 2018-11-16 18:45 Test4.txt
----------- --------- ---------- ------ ----

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

Re: 7-Zip support for HoverBox

Post by Borut » 16 Nov 2018 22:30

admin wrote:
16 Nov 2018 17:26
Borut wrote:
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.
[...]
1. I did not say that relative path syntax is supported. :)

2. Why is it not a good idea? (I thought when you take your USB-XYplorer to various systems, it's a good idea when it tries to find those files anew when necessary...)
ad 1: Yep. Please, I would appreciate the relative path syntax support. (BTW, I have just seen that it is supported correctly in the address line. I have no idea how it appeared not to work some hours ago - must be my mistake.)

ad 2: I carry my small portable world on a USB stick, since I do not want to depend on something *possibly* existing somewhere. I want to use the exact versions which I select. However, since I occasionally copy this portable world *somewhere* locally, I want the interdependencies to keep working, irrelevant of the absolute position and locally installed tools. In this respect I am not happy with XY tweaking my tweaks - it reminds me of M$ knowing my wishes better than I do.

So, sorry, but I am just consistently following the portable idea.
Win 7 Pro 64bit

Nighted
Posts: 440
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: 7-Zip support for HoverBox

Post by Nighted » 16 Nov 2018 23:01

Borut wrote:
16 Nov 2018 22:30
This seems not being resolved as expected:

Code: Select all

<xypath>\..\Uncompress
So, sorry, but I am just consistently following the portable idea.
Why not this? It would work: ..\Uncompress
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

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

Re: 7-Zip support for HoverBox

Post by Borut » 16 Nov 2018 23:23

Damn it Nighted, it really works. Somehow I expected that the full/absolute path is needed.

Many thanks for the idea! :beer:

Well, issue solved for me.
Win 7 Pro 64bit

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

Re: 7-Zip support for HoverBox

Post by admin » 17 Nov 2018 11:21

Borut wrote:
16 Nov 2018 22:30
ad 1: Yep. Please, I would appreciate the relative path syntax support. (BTW, I have just seen that it is supported correctly in the address line. I have no idea how it appeared not to work some hours ago - must be my mistake.)

ad 2: I carry my small portable world on a USB stick, since I do not want to depend on something *possibly* existing somewhere. I want to use the exact versions which I select. However, since I occasionally copy this portable world *somewhere* locally, I want the interdependencies to keep working, irrelevant of the absolute position and locally installed tools. In this respect I am not happy with XY tweaking my tweaks - it reminds me of M$ knowing my wishes better than I do.
Alright, I agree. :tup:

LittleBiG
Posts: 1536
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: 7-Zip support for HoverBox

Post by LittleBiG » 19 Nov 2018 16:17

I have 7zip installed to its usual folder. When I open a new instance of XY and set the Show HowerBox option (the "Archive files" is already checked), the rar preview is not shown, only if I set the 7zip folder name explicitely in the "ZipPathUnRAR=". Zip files work well even with empty "ZipPath7zip="

Post Reply