How is Plugins default installation path determined?

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

How is Plugins default installation path determined?

Post by *Damel »

Plugins are installed automatically just by double clicking the plugin ZIP file. You are asked where to put the plugin, but sometimes is not path right. I get:

%COMMANDER_PATH%\Plugins\WCX\pluginname for an WFX plugin
registry.wfx, pluginst.inf: defaultdir=FileSystem\Registry
hp200lx.wfx, pluginst.inf: defaultdir=hplx
UnInstTC.wfx, pluginst.inf: defaultdir=Uninstall

%COMMANDER_PATH%\Plugins\Lister\pluginname for an WCX plugin
dircpy.wcx, pluginst.inf: defaultdir=wcx\dircpy
gaup.wcx, pluginst.inf: DefaultDir=GAUP
TotalISO.wcx, pluginst.inf: DefaultDir=TotalISO

For W?X plugin I would expect that will be always offered path:
%COMMANDER_PATH%\Plugins\W?X\Pluginname (W?X always in UPPERCASE)

And request: Please WLX for WLX plugins, no "Lister" dir.

And one Q: Why is offered path %COMMANDER_PATH%\Plugins\Lister\pluginname for all already instaled plugins (not only for WLX)?
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I prefer the other way: Packer, Lister, FileSystem and Content instead of faceless W?X.

Someone else prefers some another way too...

That's why TC suggests base dir that is used for other plugins of that type if possible (otherwise path suggested by plugin author used). But there is a problem when some plugin realizez more than one plugin interface (e.g. Total7zip registers as WCX and WDX, or Imagine provides WLX and WCX).

If you only have WCX files in your WCX folder and no one other plugin type, and TC still suggests WCX folder for a WFX plugin you can report it as a bug. Contents of your [PackerPlugins], [ListerPlugins], [ContentPlugins] and [FileSystemPlugins] sections would help.
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Post by *Damel »

Thank you MVV! You threw light on this problem. I purify plugins and test that again.
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

MVV wrote:That's why TC suggests base dir that is used for other plugins of that type if possible (otherwise path suggested by plugin author used).
To clarify:
In a pure TC install, w/o any plug-ins at all, TC always suggests:

Code: Select all

TC-dir\plugins\<"type" name from pluginst.inf>\<"defaultdir" name from pluginst.inf>
So TC will prefix plugins (lower case) and "type" is expected to hold w?x.

But true, if you already have a plug-in of that type installed, TC will suggest that very base path.

2Damel
I also have the "Lister" dir, but it results from some plug-in installations that were ages ago.
From what I can see TC works exactly as you would expect (on a clean install),
at least when the plug-in author filled the pluginst.inf correctly.
TC plugins: PCREsearch and RegXtract
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, TC tries to detect when the user has changed the plugin install location, and also tries to group plugins of a specific type together. And yes, this function can get confused when a plugin contains multiple plugin types. However, the plugins will still work, even if put in the wrong subfolder.
Author of Total Commander
https://www.ghisler.com
Post Reply