Total7zip

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Profane0360
Junior Member
Junior Member
Posts: 21
Joined: 2023-08-31, 20:08 UTC

Re: Total7zip

Post by *Profane0360 »

The doc says the following: "If Total Commander is started in portable mode, Total7zip.xml will be stored in the plugin folder, as it was in previous versions. Default path is %COMMANDER_PATH%\Plugins\WCX\Total7zip\Total7zip.xml In all other cases Total7zip.xml will be saved to the directory where Total Commander stores the wincmd.ini."

I have Total commander in a folder like D:\TCmd, placed there via unzipping the installer, i.e. not actually installing it. If the folders structure is

D:\TCmd
D:\TCmd\ini
D:\TCmd\plugins
D:\TCmd\tools

then Total7zip.xml is stored in the folder D:\TCmd\plugins\Total7zip. But if the folders structure is

D:\TCmd\bin
D:\TCmd\ini
D:\TCmd\plugins
D:\TCmd\tools

i.e. with all the TC files in the bin folder, then Total7zip.xml is stored in the folder D:\TCmd\ini.

Why this difference? What does "portable mode" actually mean? Thank you.
#155067 Personal licence (March 2007)
Profane0360
Junior Member
Junior Member
Posts: 21
Joined: 2023-08-31, 20:08 UTC

Re: Total7zip

Post by *Profane0360 »

I believe that the actual answer is this one:

“Now it supports what you want - if TC stores wincmd.ini _anywhere_ _inside_ %COMMANDER_PATH% folder, the plugin creates Total7zip.xml in its own folder.”
#155067 Personal licence (March 2007)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp »

Here, TC runs in portable mode.
The plugin is stored under
C:\Tools\Wincmd\PLUGINS\Total7zip\
The Total7zip.xml is stored as
C:\Tools\Wincmd\PLUGINS\Total7zip\Total7zip.xml

Your folders bin, ini and tools are not part of a standard portable TC installation.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Profane0360
Junior Member
Junior Member
Posts: 21
Joined: 2023-08-31, 20:08 UTC

Re: Total7zip

Post by *Profane0360 »

So portable mode implies that %COMMANDER_INI%\.. is actually the same as %COMMANDER_PATH%, and plugins is a folder of %COMMANDER_PATH%. Thank you!
#155067 Personal licence (March 2007)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Total7zip

Post by *Horst.Epp »

Profane0360 wrote: 2023-09-28, 12:34 UTC So portable mode implies that %COMMANDER_INI%\.. is actually the same as %COMMANDER_PATH%, and plugins is a folder of %COMMANDER_PATH%. Thank you!
%COMMANDER_INI% may point to some other path if TC was started with a /I= parameter.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Profane0360
Junior Member
Junior Member
Posts: 21
Joined: 2023-08-31, 20:08 UTC

Re: Total7zip

Post by *Profane0360 »

Then I am confused. When Total7zip.xml stays in its own folder? According to the doc this happens in the case of a portable setup. Not a “standard” portable setup. What does that mean?

o I can start TC with my ini files elsewhere. Does this make the setup not portable? It shouldn’t.
o I can have other tools that I need, where these stay is irrelevant for the setup itself.

So my conclusion is that a portable setup has to have the plugins folder inside %COMMANDER_PATH%, and not elsewhere. This is the only major difference between my two scenarios.
#155067 Personal licence (March 2007)
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Total7zip

Post by *petermad »

2Profane0360

You can actually force the location of plugin ini-files:
Help wrote: [ReplaceIniLocation] Set a different ini file location for specific plugins, via function *SetDefaultParams, parameter DefaultIniName, via line pluginfile.ext=c:\path\newinifile.ini or pluginfile.ext=c:\path\ - the plugin may ignore the name and just use the path.
pluginname.ext= New location of ini file sent to the plugin. The plugin name must be specified without path, and with extension as configured in wincmd.ini, e.g. sftpplug.wfx
Special values:
* send default value, but redirect to user profile if location not writable (default for packer, file system, and lister plugins)
- send default value, but do not redirect to user profile on fail (default for content plugins)
So try:

Code: Select all

[ReplaceIniLocation]
Total7zip.wcx=%COMMANDER_DRIVE%\TCmd\Plugins\WCX\Total7zip\Total7zip.xml
You cannot use %COMMANDER_PATH% it points to D:\TCmd\bin
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Profane0360
Junior Member
Junior Member
Posts: 21
Joined: 2023-08-31, 20:08 UTC

Re: Total7zip

Post by *Profane0360 »

Thank you!
#155067 Personal licence (March 2007)
Post Reply