New installer for Total Commander - please test it!

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Ok I see - very good! :-)

I had to extract the installer contents before and somehow move them to a destination of choice. Now I can just run the installer.
User avatar
crconner
Junior Member
Junior Member
Posts: 23
Joined: 2004-12-25, 22:44 UTC
Location: USA

new installer

Post by *crconner »

I used the 32 bit installer on Win 7. It installed fine, but it overwrote my customized WCMD_ENG.MNU and TOTALCMD.INC files with its new ones.
My hero, Mr. Ghisler. License #37856 since 1999.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6983
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: new installer

Post by *Horst.Epp »

crconner wrote:I used the 32 bit installer on Win 7. It installed fine, but it overwrote my customized WCMD_ENG.MNU and TOTALCMD.INC files with its new ones.
A customized version of this files should not be stored under the standard names.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50567
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The mnu, inc and lng files are always overwritten to include the new strings needed by newer versions of TC. Just rename them to e.g.
wcm_my_eng.mnu, and then choose this in configuration - options - language.
Author of Total Commander
https://www.ghisler.com
User avatar
crconner
Junior Member
Junior Member
Posts: 23
Joined: 2004-12-25, 22:44 UTC
Location: USA

Post by *crconner »

Thanks. But I ran into a problem.

Changing the settings for two of them is easy.
Wcmd_Eng.mnu is changed in wincmd.ini as the setting MAINMENU=My_WCMD_ENG.MNU.
If I used a language file other than English, the change for .lng is LanguageINI=My_new_other_language.lng. But since I use only English, this does not apply to me.

But I cannot figure out how to change the TOTALCMD.INC file setting to something different. There is this text string encoded in TOTALCMD.EXE. But it doesn't seem to be anywhere else I can find.

(I normally don't run into the overwrite problem, as I manually update my files like Lefteous does. But the suggestions to change the names are good ones anyways.)
My hero, Mr. Ghisler. License #37856 since 1999.
User avatar
petermad
Power Member
Power Member
Posts: 16034
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Just make an empty file called My_WCMD_ENG.LNG - TC will replace all non existing strings with those from the internal Engliish language.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
crconner
Junior Member
Junior Member
Posts: 23
Joined: 2004-12-25, 22:44 UTC
Location: USA

Post by *crconner »

Thanks for the reply, Petermad. I created an empty My_Wcmd_Eng.LNG in the \language folder. Then I put My_TOTALCMD.INC in both the root folder, and the \language folder (as I didn't know which it would pick up). I tried it both with and without the wincmd.ini line: "LanguageINI=c:\tc\Language\My_WCMD_ENG.LNG".

But TC still does not seem to read my custom .INC file. For the "User", section, only the default items are present. Any ideas?
My hero, Mr. Ghisler. License #37856 since 1999.
User avatar
petermad
Power Member
Power Member
Posts: 16034
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

TOTALCMD.INC is not language specific and has to be placed in TC's program folder.

There can be a wcmd_mylanguage.inc file in the language directory with the translation of the legend for the command strings used for example in the Choose command dialog (cm_CommandBrowser).

If you have customized totalcmd.inc it shall still have the name of totalcmd.inc - you can prevent it from being overwritten by the installer by marking it as read-only - but then of course you won't get any new commands that might have been introduced since the last version of TC.

So regarding customized totalcmd.inc there is no other way than to keep a backup that you can merge with the new totalcmd.inc that is overwriting the old one by the installer.

It is only the purely language specific files that you can give a customized name to keep them from being overwritten - those files are wcmd_xx_language.lng, wcmd_xx_language.mnu, wcmd_xx_language.inc and wcmd_xx_language.ini

for example:
wcmd_pm_dan.lng, wcmd_pm_dan.mnu, wcmd_pm_dan.inc and wcmd_pm_dan.ini

They have to start with wcmd_ and end with _lng in the filename part in order to work properly - where lng is the 2 or 3 digit code for your language (eng, deu, dan, cz, sk etc).


See http://www.ghisler.ch/wiki/index.php/Backup

.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply