Plugin auto-install HOWTO (TC 6.5 or newer)
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
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)
Bad cards ... it is just ignored for prg 
Any chance to get support for this too?
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

Any chance to get support for this too?
#5767 Personal license
sqa_wizard
Just put the files into subdirectory 64 inside archive.
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 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Thank you Flint!
I put the files into subdirectory "64" inside archive and used
...that did the trick 
I put the files into subdirectory "64" inside archive and used
Code: Select all
type=prg
file=64

#5767 Personal license
I just realized that my plugin doesn't create directory when autoinstalling. This is pluginst.inf:
Plugin is installed to %COMMANDER_PATH%\wfx\ instead of %COMMANDER_PATH%\wfx\BranchViewEx\. What is wrong?
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
#213083 Single user license
BranchViewExtended
BranchViewExtended
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
Re: Plugin auto-install HOWTO (TC 6.5 or newer)
How do you think about a type "util" for TC utilities like TCMatch? This would be located in %Commander_Path%\Plugins\Utilghisler(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.
mf
Bankster - Word of the Year 2009
That's not correct. Tcmatch is moved to a subdir in my configuration. In wincmd.ini is a TCMatch= parameter.MVV wrote:Mikefield,
You can't move tcmatch.dll from TC dir to a subdir
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