Total Commander's fresh install to another dir takes INI files from previously installed copy

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Total Commander's fresh install to another dir takes INI files from previously installed copy

Post by *nice »

Total Commander's fresh install to another dir takes INI files from previously installed copy.
INI files are in program folder.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total Commander's fresh install to another dir takes INI files from previously installed copy

Post by *ghisler(Author) »

Yes, this is fully intentional. Why do you think that this is a bug?
Author of Total Commander
https://www.ghisler.com
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Total Commander's fresh install to another dir takes INI files from previously installed copy

Post by *nice »

If I want to overwrite installation to the same dir, then it should use existing ini files.
If I install to separate dir, it should use new ini files.
Why it takes only INI, and not plugins?
INI becomes partially non-functional because entries for plugins/external editor is present, but files are missing.
I found this when the external editor was missing, which is in the %COMMANDER_PATH% folder in a previous existing installation, but certainly not in a fresh installation.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total Commander's fresh install to another dir takes INI files from previously installed copy

Post by *ghisler(Author) »

If I install to separate dir, it should use new ini files.
But why? You will have to re-do all your settings. It only copies the ini files when there are no ini files in the target yet, so you don't risk any data loss.
Why it takes only INI, and not plugins?
The plugins are usually referenced by full path in the ini, so they will still work.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Total Commander's fresh install to another dir takes INI files from previously installed copy

Post by *Usher »

ghisler(Author) wrote: 2022-09-06, 06:34 UTC The plugins are usually referenced by full path in the ini, so they will still work.
Many people use the following setting:
pluginbasedir=%COMMANDER_PATH%\plugins

...and they did set it long time ago.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
white
Power Member
Power Member
Posts: 4576
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Total Commander's fresh install to another dir takes INI files from previously installed copy

Post by *white »

nice wrote: 2022-09-04, 21:29 UTC Total Commander's fresh install to another dir takes INI files from previously installed copy.
INI files are in program folder.
To clarify for other readers: The installer copies the ini files from a previous installation.
ghisler(Author) wrote: 2022-09-05, 09:44 UTC Yes, this is fully intentional. Why do you think that this is a bug?
Why do you think this is transparent?
nice wrote: 2022-09-05, 11:01 UTC If I install to separate dir, it should use new ini files.
I think people would normally assume this would happen if the ini files are stored in the program folder.
ghisler(Author) wrote: 2022-09-06, 06:34 UTC But why? You will have to re-do all your settings. It only copies the ini files when there are no ini files in the target yet, so you don't risk any data loss.
It's not obvious behavior and the user is not informed about it or given a choice. It doesn't give you the feeling of being in total command over your files.

Not only does the installer look for ini files of a previous install by the current user (by examining registry HKCU), but if it can't find it, it also looks for ini files of a previous install on the machine (by examining registry HKLM). So, if you choose to install Total Commander in a different folder and choose the program folder as the location for the ini files, the installer may copy some seemingly random other user's ini files.
Post Reply