Page 2 of 3

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 17:06
by pixelsearch
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.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 17:13
by admin
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>");

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 17:17
by admin
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>));

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 17:24
by Leito
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.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 17:26
by admin
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...)

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 18:42
by pixelsearch
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 79 times
Test4.rar
(188 Bytes) Downloaded 78 times
Good luck Don

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 18:56
by admin
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?

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 19:02
by pixelsearch
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

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 19:11
by admin
So, so... "Program aborted". Well, that could mean anything. So, I will do nothing. It's good as it is now.

Thanks! :)

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 19:47
by pixelsearch
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
----------- --------- ---------- ------ ----

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 22:30
by Borut
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.

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 23:01
by Nighted
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

Re: 7-Zip support for HoverBox

Posted: 16 Nov 2018 23:23
by Borut
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.

Re: 7-Zip support for HoverBox

Posted: 17 Nov 2018 11:21
by admin
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:

Re: 7-Zip support for HoverBox

Posted: 19 Nov 2018 16:17
by LittleBiG
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="