Silent install - wrong language

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
wasshup
Junior Member
Junior Member
Posts: 5
Joined: 2019-12-04, 09:46 UTC

Silent install - wrong language

Post by *wasshup »

Hi,
I have problem with deploying Total Commander in specified language.
I created silent install, when I run .exe file on clean system everything is ok, everything is working great. But, when i put it into SCCM 2012, after system deployment is over, total commander is in english language, despite the settings in install.inf file.

Config file sould be OK (see bellow)

Code: Select all

[Installation]
program=Total Commander 64 bit
progver=9.51
progvermajor=9
progverminor=5107
progname=Total Commander
copyright=Copyright © 1993-2020 by Christian Ghisler, All Rights reserved
url=http://www.ghisler.com
publisher=Ghisler Software GmbH
updatecheck=totalcmd64.exe
// User for shortcut creation: Blank for current user, * for all users, or give user name
UserName=

[auto]
// Set auto=1 for automatic installation, hidden=1 for invisible installer, with parameters below and from [Installation]
auto=1
hidden=1
lang=11
alllang=1
iniloc=
iniall=0
mkgroup=1
mkdesktop=1
update=1

[Versioncheck]
Vernum=2

[Not running]
1=WINDOW,Total Commander
2=TTOTAL_CMD,Total Commander
3=TTOTAL_CMD.UnicodeClass,Total Commander
4=TApplication,Total Commander,Total Commander
5=Window,Totalcmd tool,Total Commander (standalone tool)

[Destination]
Dir=c:\Program Files\Total Commander
Ini=wincmd.ini,Configuration,InstallDir
IgnoreOldLocation=0

[Languages]
Count=18
Default=1
1=English
2=Deutsch (German),d
3=Français (French),f
4=Đóńńęčé (Russian),u
5=Nederlands (Dutch),n
6=Dansk (Danish),k
7=Norsk (Norwegian),o
8=Italiano (Italian),i
9=Svenska (Swedish),s
10=Espańol (Spanish),e
11=Český (Czech),z
12=Polski (Polish),p
13=Magyar (Hungarian),h
14=Slovenský (Slovak),y
15=Slovenski (Slovene),l
16=Çѱąľî (Korean),r
17=ĽňĚĺÖĐÎÄ (Simplified Chinese),c
18=Română (Romanian),m

[locale]
0406=k
0413=n
040c=f
140c=f
080c=f
0c0c=f
100c=f
180c=f
0407=d
1407=d
1007=d
0807=d
0c07=d
0410=i
0810=i
0414=o
0814=o
041D=s
2c0a=e
400a=e
340a=e
240a=e
140a=e
1c0a=e
300a=e
440a=e
100a=e
480a=e
080a=e
4c0a=e
180a=e
3c0a=e
280a=e
500a=e
040a=e
0c0a=e
380a=e
200a=e
0415=p
0405=z
041b=y
0424=l
040e=h
0418=m
0419=u
0412=r
0204=c
0304=c
0404=c
0504=c

[LangName]
langdir=language
0=wcmd_eng
d=wcmd_deu
f=wcmd_fra
n=wcmd_dut
k=wcmd_dan
o=wcmd_nor
i=wcmd_ita
s=wcmd_swe
e=wcmd_esp
z=wcmd_cz
p=wcmd_pol
h=wcmd_hun
y=wcmd_sk
l=wcmd_svn
r=wcmd_kor
m=wcmd_rom
u=wcmd_rus
c=wcmd_chn

;Save data the user may have changed!
[Backup data]
1=default.bar
2=no.bar

[Install]
1=install.cab,c
2=wincmd.key

[Installd]
1=install.cab,c

[Desktop]
1=totalcmd64.exe","Total Commander.lnk

[Group]
Groupname=Total Commander
1=totalcmd64.exe","Total Commander 64 bit
2=totalcmd.chm","Total Commander Help
3=tcunin64.exe","Uninstall or Repair Total Commander

[Groupd]
Groupname=Total Commander
1=totalcmd64.exe","Total Commander 64 bit
2=totalcmd.chm","Total Commander Hilfe
3=tcunin64.exe","Total Commander 64 bit Entfernen oder Reparieren

[ini]
1=wincmd.ini,configuration,languageini
2=wincmd.ini,configuration,Mainmenu

[inid]
1=wincmd.ini,configuration,languageini,wcmd_deu.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_deu.mnu

[inif]
1=wincmd.ini,configuration,languageini,wcmd_fra.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_fra.mnu

[inin]
1=wincmd.ini,configuration,languageini,wcmd_dut.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_dut.mnu

[inik]
1=wincmd.ini,configuration,languageini,wcmd_dan.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_dan.mnu

[inio]
1=wincmd.ini,configuration,languageini,wcmd_nor.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_nor.mnu

[inii]
1=wincmd.ini,configuration,languageini,wcmd_ita.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_ita.mnu

[inis]
1=wincmd.ini,configuration,languageini,wcmd_swe.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_swe.mnu

[inie]
1=wincmd.ini,configuration,languageini,wcmd_esp.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_esp.mnu

[iniz]
1=wincmd.ini,configuration,languageini,wcmd_cz.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_cz.mnu

[inip]
1=wincmd.ini,configuration,languageini,wcmd_pol.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_pol.mnu

[inih]
1=wincmd.ini,configuration,languageini,wcmd_hun.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_hun.mnu

[iniy]
1=wincmd.ini,configuration,languageini,wcmd_sk.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_sk.mnu

[inil]
1=wincmd.ini,configuration,languageini,wcmd_svn.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_svn.mnu

[inir]
1=wincmd.ini,configuration,languageini,wcmd_kor.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_kor.mnu

[inim]
1=wincmd.ini,configuration,languageini,wcmd_rom.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_rom.mnu

[iniu]
1=wincmd.ini,configuration,languageini,wcmd_rus.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_rus.mnu

[inic]
1=wincmd.ini,configuration,languageini,wcmd_chn.lng
2=wincmd.ini,configuration,Mainmenu,wcmd_chn.mnu
SCCM settings:
Image: https://i.imgur.com/rcqsFug.png

Also I have old version of silent install and there is no problem with it- language is correct after deployment.

What can possibly cause this ?
Is there some difference between the versions 922a and 951 ?

Thank you.
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Silent install - wrong language

Post by *Stefan2 »

Ha!    I learned that just that weekend.

Let me see if I had get that auto install feature correct (not sure yet if I am right here or not)


Settings in install.inf file is for current (installing) user only.
The wincmd.ini for different users (installer user included) is taken from there AppData-folder for each user individually,
and there the settings are the default one on first start.

(There are different scenarios how a wincmd.ini can be shared by different user, (see possibilities in Installer) for example every user would use the same ini,
and you can put and use the ini also in the program folder, if that ini contain the setting "UseIniInProgramDir=7" inside and users have write
access to that ini, take care as your chosen InstallFolder "c:\Program Files\" is write protected on default by MicrosoftTM)

You may want to deploy a custom made ini to each users profile (ahead before they start TC) if not any already existent,
by utilizing an script of an languages of your choice.
That script also can launch first the installer and is called from your SCCM deployment instead of the installer directly.


That's what I have learned by reading older posts. Can somebody please clarify if I get that correct ? ;-)



- - -

And another thing for your line

Code: Select all

// User for shortcut creation: Blank for current user, * for all users, or give user name
UserName=
and deployment as System account via SCCM:
by *ghisler(Author) » Mon Aug 07, 2017 15:32
viewtopic.php?p=330838#p330838
You need to change the UserName line:

// User for shortcut creation: Blank for current user, * for all users, or give user name
UserName=

If you leave it blank, TC will try to create shortcuts for "system" user if your installer runs under "system". Try setting
UserName=*


 
wasshup
Junior Member
Junior Member
Posts: 5
Joined: 2019-12-04, 09:46 UTC

Re: Silent install - wrong language

Post by *wasshup »

Stefan2 wrote: 2020-05-11, 09:57 UTC Ha!    I learned that just that weekend.
 
Hi,
thank you for reply and explanation, it makes sense for me now.
I checked appdata folder and there is file named WINCMD.INI, but there is no language line. Should i add one ? But I don't know the syntax for it.

Code: Select all

[Configuration]
UseNewDefFont=1
SetEncoding=äö.do.not.remove
firstmnu=2810
FirstTimeIconLib=0
FirstTime=0
SeparateTree=0
PanelsVertical=0
[ButtonbarCache]
IconDll_default.bar=
IconDll_vertical.bar=
[FileSystemPlugins64]
$checksum$=3014672
[left]
path=c:\
ViewMode=10001
activepanelcolor=-1
activepanelcolor2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=0
[right]
path=c:\
ViewMode=10001
activepanelcolor=-1
activepanelcolor2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=0
[RightHistory]
0=c:\
[LeftHistory]
0=c:\

About that "User for shortcut creation" line, I'm dealing with desktop shortcuts by myself using step in SCCM task sequence so it has no importance for me.
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Silent install - wrong language

Post by *Stefan2 »

Thank you very much for the update.


The "language line" you can find in your working WINCMD.INI.
Or after you've set the wanted language via menu "Configuration > Options... >> Language" other than English.



I took a look in my WINCMD.INI for the language line and I have there:

[Configuration]
. . .
. . . ..
LanguageIni=WCMD_DEU.lng
Mainmenu=WCMD_DEU.mnu


(if I set other language than default English, as defaults are not stored in the INI)



You can just paste that lines into your wincmd.ini (but be sure there are only one entry in the INI once you're done) and adjust the name of the file to your need
LanguageIni=WCMD_CZ.LNG
Mainmenu=WCMD_CZ.MNU





 
wasshup
Junior Member
Junior Member
Posts: 5
Joined: 2019-12-04, 09:46 UTC

Re: Silent install - wrong language

Post by *wasshup »

I want to say huge thank you. It works great :wink:

Thank you for your time and suggestions.

I used XCOPY command to copy WINCMD.INI file to Default users appdata folder.

Problem solved.
Post Reply