Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-11-29, 21:43 UTC

If to define in internal associations unpackers (internal, external for opening archive, TC won't offer to install the plugin if archive is opened by such internal context menu item, or by Enter if WCX or internal unpacker assigned to default Open action, as in example below:

Code: Select all

[Associations]
Filter1=*.7z
Filter1_open=**internal_7z
Filter1_7z plugin=**7z
Filter1_7-Zip plugin=**7zip
[PackerPlugins]
7z=207,c:\backup_c\Program Files\7-Zip\7z_upx.wcx
7zip=71,c:\totalcmd\Plugins\wcx\7zip\7zip.wcx
----------------------------------------------------------------

A note about **internal_7z. It works as described in history.txt:
HISTORY.TXT wrote:19.03.19 Fixed: Internal associations: **ext only worked for packer plugins, not for internal unpackers like **zip. Now also supports **internal_zip to override external packers (32/64)

As Christian Ghisler explained in email:
Christian Ghisler wrote:The following are recognized: **xyz or **internal_xyz with xyz any of these:
zip, arj, lha, lzh, rar, uc2, gz, tar, tgz, ace, cab, 7z, t7z.
...
If you use for example **zip, Total Commander will use any (external) packer plugin if there is one defined for the zip extension, otherwise the internal zip. Therefore **internal_zip is only needed when there IS a packer plugin defined for zip AND an internal unpacker for zip.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38451
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *ghisler(Author) » 2019-12-02, 10:03 UTC

Currently TC treats this like pressing Ctrl+PageDown, where plugins are ignored. I will change it.
Author of Total Commander
http://www.ghisler.com

User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-12-04, 21:45 UTC

https://www.ghisler.com/history950.txt wrote:02.12.19 Fixed: Auto-installing plugins via pluginst.inf didn't work when archive was opened via internal association (32/64)
This fix doesn't seem to work for my example settings from first post - TC 9.50 beta 8 still doesn't show auto-install offer message if to open .7z archive with Enter or using any internal context menu item.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38451
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *ghisler(Author) » 2019-12-05, 16:11 UTC

It works for me. Maybe you had opened the file before? It only works on the first open of the file after starting TC.
Author of Total Commander
http://www.ghisler.com

User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-12-05, 19:33 UTC

ghisler(Author) wrote:
2019-12-05, 16:11 UTC
It works for me. Maybe you had opened the file before? It only works on the first open of the file after starting TC.
I tried it on almost default ini, like this one:

Code: Select all

[Configuration]
UseNewDefFont=1
SetEncoding=дц.do.not.remove
firstmnu=2682
FirstTime=0
FirstTimeIconLib=0
DarkMode=2
SeparateTree=0
PanelsVertical=0
FirstTimeUnpack=0
QuickSearchAutoFilter=1
[left]
path=c:\downloads\
ViewMode=10001
activepanelcolor=-1
activepanelcolor2=-1
activepanelcolordark=-1
activepanelcolordark2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=3
negative Sortorder=1
[right]
path=c:\
ViewMode=10001
activepanelcolor=-1
activepanelcolor2=-1
activepanelcolordark=-1
activepanelcolordark2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=0
[Associations]
Filter1=*.7z
Filter1_open=**internal_7z
Filter1_7z plugin=**7z
Filter1_7-Zip plugin=**7zip
[PackerPlugins]
7z=207,c:\backup_c\Program Files\7-Zip\7z_upx.wcx
7zip=71,c:\totalcmd\Plugins\wcx\7zip\7zip.wcx
[RightHistory]
[LeftHistory]
So if I open a file http://progman13.wincmd.ru/downloads/wlx_HexViewer_1.1_Beta.7z using any of 3 internal association menus (Open, 7z, 7zip) or Enter key, no matter whether after TC restart or after opening another archive with Enter, TC just opens wlx_HexViewer_1.1_Beta.7z and doesn't ask to install a plugin. With removed internal associations (but leaving association for 7z in [PackerPlugin] section) or if to start TC with really clean ini, it asks to install this plugin after archive opening.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38451
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *ghisler(Author) » 2019-12-11, 08:00 UTC

I'm sorry but I cannot reproduce it. I used your sample ini (with just the directories of the plugins adjusted), with 7z pointing to the 7zip plugin, and 7zip pointing to Total7zip. All 3 methods (Enter and the two context menu entries) open the plugin install dialog.
Author of Total Commander
http://www.ghisler.com

User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-12-11, 11:15 UTC

It seems the reason is 7z plugin, or its upx version, CRC32:
7z.wcx B7C94996
7z_upx.wcx DF757A7F

If this plugin is installed, auto-install doesn't work for it on 7z opening.
Edit: Then, other internal menus that use other plugins or internal unpacker don't offer auto-install dialog too!

So with configuration:

Code: Select all

[Associations]
Filter1=*.7z
Filter1_open=**internal_7z
Filter1_7-Zip plugin=**7zip
[PackerPlugins]
7z=207,c:\backup_c\Program Files\7-Zip\7z_upx.wcx
7zip=71,c:\totalcmd\Plugins\wcx\7zip\7zip.wcx
with 7zip and 7z plugins installed, with 7z one associated with 7z extension, internal menus for internal unpacker and 7zip plugin won't offer auto-install!


Today I sent to support email this problem 7z plugin with 7zip program which it uses.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38451
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *ghisler(Author) » 2019-12-11, 16:15 UTC

I have tried your 7zip plugin with your ini and autoinstall works just fine. :(
Author of Total Commander
http://www.ghisler.com

User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-12-11, 17:00 UTC

In email I sent a video which shows that there is no auto-install offers for menu items when to open an archive with .7z extension, even though the 7z plugin is only installed, but not used for menus at all.
For the same file with .7zip extension, auto-install works fine.
Test settings:

Code: Select all

[Associations]
Filter1=*.7z
Filter1_open=**internal_7z
Filter1_7-Zip plugin=**7zip
Filter2=*.7zip
Filter2_open=**internal_7z
Filter2_7-Zip plugin=**7zip
[PackerPlugins]
7z=207,c:\backup_c\Program Files\7-Zip\7z_upx.wcx
7zip=71,c:\totalcmd\Plugins\wcx\7zip\7zip.wcx
7z plugin is this one.
7zip plugin is from here.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38451
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *ghisler(Author) » 2019-12-11, 17:34 UTC

Yes, I have seen the video, but I still can't reproduce it. Can you try opening the .7z file before the .7zip file?
Author of Total Commander
http://www.ghisler.com

User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-12-11, 17:41 UTC

ghisler(Author) wrote:
2019-12-11, 17:34 UTC
Yes, I have seen the video, but I still can't reproduce it. Can you try opening the .7z file before the .7zip file?
Yes, also tried that after TC restart and even cm_UnloadPlugins, but still no auto-install for menus used for files with .7z extension...
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
DrShark
Power Member
Power Member
Posts: 1400
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *DrShark » 2019-12-12, 13:02 UTC

2ghisler(Author)
The post:
https://ghisler.ch/board/viewtopic.php?p=364823#p364823
explains why Auto-install dialog doesn't appear when using 7z plugin to open .7z archive.

It doesn't explain, however, why Auto-install dialog then doesn't appear for all context menu unpackers set for .7z extension, as in configuration from the post https://ghisler.ch/board/viewtopic.php?p=364765#p364765

Please try to reproduce the issue with full 7-zip program I attached to my first email on this issue from Dec 11, 2019.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38451
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Plugin install by pluginst.inf doesn't work on opening with unpacker from Internal Associations

Post by *ghisler(Author) » 2019-12-12, 17:34 UTC

I will check it, but it makes sense that it's due to the missing compression method.
Author of Total Commander
http://www.ghisler.com

Post Reply