Plugin auto-install HOWTO (TC 6.5 or newer)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp » 2011-05-03, 13:47 UTC

Add to 1 post inf about 'lng': to what folder it should install, 'prg':it is missed there

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

Post by *ghisler(Author) » 2011-05-05, 13:30 UTC

No, there is a separate type "lng" which should be used for language files! Language-specific hlp and chm files can also be installed there.
Author of Total Commander
http://www.ghisler.com

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp » 2011-05-05, 13:49 UTC

You didnt get it. There's type 'prg' which you didn't mention in 1 post. //it used now in russian language pack.

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

Post by *ghisler(Author) » 2011-05-05, 13:56 UTC

Ah, I see - normally prg shouldn't be used because it doesn't work with U3 USB sticks (that's why there is a separate U3 installer for the Russian language pack). I have documented it now anyway for users who need it.
Author of Total Commander
http://www.ghisler.com

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp » 2011-05-05, 14:15 UTC

sugg.: file2/type2 field. For installing wcx+wlx. wfx+wdx.

User avatar
sqa_wizard
Power Member
Power Member
Posts: 3480
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard » 2011-11-24, 22:09 UTC

I recently used the type=prg to install 32-bit dlls required for sftp plugin into TC folder.
It works fine so far :)

To install the x64 files too, they have to be installed into subdirectory "64".
My first guess: No problem, just specify a defaultdir like it is used for plugins (wcx, wdx,wfx, wlx)

Code: Select all

type=prg
file=libssh2.dll
defaultdir=64
Bad cards ... it is just ignored for prg :(

Any chance to get support for this too?
#5767 Personal license

User avatar
Flint
Power Member
Power Member
Posts: 3168
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2011-11-25, 09:47 UTC

sqa_wizard
Just put the files into subdirectory 64 inside archive. :)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.21a / Win7 x64 SP1, Win10 x64

User avatar
sqa_wizard
Power Member
Power Member
Posts: 3480
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard » 2011-11-25, 22:54 UTC

Thank you Flint!
I put the files into subdirectory "64" inside archive and used

Code: Select all

type=prg
file=64
...that did the trick :)
#5767 Personal license

User avatar
kotlomoy
Junior Member
Junior Member
Posts: 99
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy » 2013-10-19, 12:24 UTC

I just realized that my plugin doesn't create directory when autoinstalling. This is pluginst.inf:

Code: Select all

[plugininstall]
description=BranchViewExtended 1.03: Branch view with subfolder sizes (http://www.ghisler.ch/board/viewtopic.php?t=24238)
type=wfx
file=BranchViewEx.wfx
defaultdir=BranchViewEx
Plugin is installed to %COMMANDER_PATH%\wfx\ instead of %COMMANDER_PATH%\wfx\BranchViewEx\. What is wrong?
#213083 Single user license
BranchViewExtended

User avatar
MVV
Power Member
Power Member
Posts: 8305
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2013-10-19, 13:27 UTC

kotlomoy,
It suggests correct path for me, %COMMANDER_PATH%\Plugins\FileSystem\BranchViewEx\ (I install WFX under FileSystem subdir). But it seems that TC searches for *.WFX files in order to determine WFX subdir path because when I put a WFX into FileSystem dir, TC suggested %COMMANDER_PATH%\plugins\BranchViewEx as plugin destination path. Please note that plugin dir is appended to path in both cases so it is probably something strange in your special case. Maybe some INI settings or installed files caused this.

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

Post by *ghisler(Author) » 2013-10-20, 07:27 UTC

Maybe you had a previous installation of the plugin in %COMMANDER_PATH%\wfx\? TC will always offer to overwrite an already installed plugin with the same name.
Author of Total Commander
http://www.ghisler.com

User avatar
Mikefield
Power Member
Power Member
Posts: 623
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Re: Plugin auto-install HOWTO (TC 6.5 or newer)

Post by *Mikefield » 2016-10-14, 22:58 UTC

ghisler(Author) wrote: The type field contains the plugin type: wcx, wfx, wlx or wdx (new plugin type for file content data), lng for additional languages, or prg for the Total Commander directory.
How do you think about a type "util" for TC utilities like TCMatch? This would be located in %Commander_Path%\Plugins\Util


mf
Bankster - Word of the Year 2009

User avatar
MVV
Power Member
Power Member
Posts: 8305
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2016-10-16, 11:47 UTC

Mikefield,
You can't move tcmatch.dll from TC dir to a subdir so prg type should be used for it. Regarding other tools, different users put them into completely different places...

User avatar
Mikefield
Power Member
Power Member
Posts: 623
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield » 2016-10-16, 14:24 UTC

MVV wrote:Mikefield,
You can't move tcmatch.dll from TC dir to a subdir
That's not correct. Tcmatch is moved to a subdir in my configuration. In wincmd.ini is a TCMatch= parameter.
So back to "util" subdir. What about a "UtilDir=" in wincmd.ini [Configuration]? Then it makes sense to add an "util" type.


mf
Bankster - Word of the Year 2009

User avatar
MVV
Power Member
Power Member
Posts: 8305
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2016-10-16, 14:41 UTC

Ah, there is an INI option for this library...

I don't think that such third-party tools really need TC installation mechanism.

Post Reply