Total Commander (TC) Command line parameters
Zitat von mpachmann am 6. Juli 2023, 18:50 Uhrhttps://www.ghisler.ch/wiki/index.php?title=Installer#Command_line_parameters
Command line switches and parameters Switch/parameter Description Auto install Interactive install Default A[0 | 1] Automatic installation ✔ A0 H[0 | 1] Hidden installation (nothing is shown on screen) ✔ H0 L[1-18] Language to be used in Total Commander
1 = English
2 = German
3 = French
4 = Russian
5 = Dutch
6 = Danish
7 = Norwegian
8 = Italian
9 = Swedish
10 = Spanish
11 = Czech
12 = Polish
13 = Hungarian
14 = Slovak
15 = Slovene
16 = Korean
17 = Simplified Chinese
18 = Romanian✔ L1 M[0 | 1] Install all available languages ✔ M1 G[0 | 1] Create a group of shortcuts in the Windows Start menu ✔ G1 D[0 | 1] Create desktop shortcut(s) ✔ D1 U[0 | 1] Update current installation if found ✔ U1 W[0-2] Write-protect the installation folder
W0 = Don't set rights (rights are inherited from the parent folder)
W1 = Write rights for currently logged on user only
W2 = Write rights for elevated users only (like in c:\Program Files)✔ W0 K Install license file WINCMD.KEY. The file must be in the same folder as the installer ✔ ✔ Don't install license file F Force a normal installation in the default installation folder or specified installation folder (ignore previous installation folders) ✔ ✔ If a previous installation folder is found, use that folder (ignore the installfolder parameter)
If a previous installation is found in the installation folder, do an update (auto install) or offer to update (interactive install)N"user" Set user for desktop and start menu shortcuts
(use * for all users)✔ ✔ Use currently logged on user Z"datafile" Load installation data from the specified file. This must be a ZIP file with a compression rate of 0 (no compression). This can also be a self-extracting ZIP file, for example an installer. ✔ ✔ Use the data in the installer installfolder Installation folder where Total Commander will be installed
(will be ignored if a previous installation folder is found, unless switch F is used)✔ ✔ "c:\Program Files\totalcmd"
"c:\totalcmd" if the user fails to run the installer elevated (with administrative rights)datafile Load installation data from the specified file. This must be a ZIP file with a compression rate of 0 (no compression). This can also be a self-extracting ZIP file, for example an installer.
Be aware that when you make a typo or the data file is temporarily unavailable, the parameter is interpreted as an installation folder and the data in the installer itself is used. As a result if a previously used installation folder is detected, the wrong package will be installed. Therefore, it is advisable to use the Z switch instead.✔ ✔ Use the data in the installer
Examples
Install Total Commander 10.52 32-bit and suggest the install folder "c:\Program Files\totalcmd" if no previous installation folder is detected on the computer.
tcmd1052x32.exeInstall Total Commander 10.52 64-bit and suggest the install folder "c:\Program Files\Total Commander" if no previous installation folder is detected. Also install the license file WINCMD.KEY if it is found in the same folder as the installer.
tcmd1052x64.exe /K c:\Program Files\Total CommanderAuto-install Total Commander 10.52 64+32-bit. Use the install folder "c:\Program Files\Total Commander" if no previous installation folder is detected. Otherwise, install in the previously used installation folder and perform an update if the program already exists in that folder. Do a quiet install, don't show anything on screen.
tcmd1052x32_64.exe /AH1 c:\Program Files\Total CommanderSuppose you created a custom installation package named AUTOINSTALL.ZIP which does an automatic installation by default. You want to use the data from this package, but this time you want to do an interactive installation.
tcmd1052x32.exe /A0 c:\subdir\AUTOINSTALL.ZIPFor a company you want to create a batch file that people in the company can use to install Total Commander on their computers. This batch file should install Total Commander 64+32-bit. To prevent that people using 32-bit systems can use this batch file, you use the installer for Total Commander 64-bit to install the data from the installer for Total Commander 64+32-bit. (You want people using 32-bit systems to use a different batch file to install the 32-bit version only.) The company wants that the Polish language is used and that no other languages will be installed. The company license file should be installed too. Normal users without administrative rights must also be able to install Total Commander. The batch file could look like this:
cd /D "E:\TC install files" tcmd1052x64.exe /Z"tcmd1052x32_64.exe"KFAL12M0 c:\Total Commander
https://www.ghisler.ch/wiki/index.php?title=Installer#Command_line_parameters
Switch/parameter | Description | Auto install | Interactive install | Default |
---|---|---|---|---|
A[0 | 1] | Automatic installation | ✔ | A0 | |
H[0 | 1] | Hidden installation (nothing is shown on screen) | ✔ | H0 | |
L[1-18] | Language to be used in Total Commander 1 = English 2 = German 3 = French 4 = Russian 5 = Dutch 6 = Danish 7 = Norwegian 8 = Italian 9 = Swedish 10 = Spanish 11 = Czech 12 = Polish 13 = Hungarian 14 = Slovak 15 = Slovene 16 = Korean 17 = Simplified Chinese 18 = Romanian |
✔ | L1 | |
M[0 | 1] | Install all available languages | ✔ | M1 | |
G[0 | 1] | Create a group of shortcuts in the Windows Start menu | ✔ | G1 | |
D[0 | 1] | Create desktop shortcut(s) | ✔ | D1 | |
U[0 | 1] | Update current installation if found | ✔ | U1 | |
W[0-2] | Write-protect the installation folder W0 = Don't set rights (rights are inherited from the parent folder) W1 = Write rights for currently logged on user only W2 = Write rights for elevated users only (like in c:\Program Files) |
✔ | W0 | |
K | Install license file WINCMD.KEY. The file must be in the same folder as the installer | ✔ | ✔ | Don't install license file |
F | Force a normal installation in the default installation folder or specified installation folder (ignore previous installation folders) | ✔ | ✔ | If a previous installation folder is found, use that folder (ignore the installfolder parameter) If a previous installation is found in the installation folder, do an update (auto install) or offer to update (interactive install) |
N"user" | Set user for desktop and start menu shortcuts (use * for all users) |
✔ | ✔ | Use currently logged on user |
Z"datafile" | Load installation data from the specified file. This must be a ZIP file with a compression rate of 0 (no compression). This can also be a self-extracting ZIP file, for example an installer. | ✔ | ✔ | Use the data in the installer |
installfolder | Installation folder where Total Commander will be installed (will be ignored if a previous installation folder is found, unless switch F is used) |
✔ | ✔ | "c:\Program Files\totalcmd" "c:\totalcmd" if the user fails to run the installer elevated (with administrative rights) |
datafile | Load installation data from the specified file. This must be a ZIP file with a compression rate of 0 (no compression). This can also be a self-extracting ZIP file, for example an installer. Be aware that when you make a typo or the data file is temporarily unavailable, the parameter is interpreted as an installation folder and the data in the installer itself is used. As a result if a previously used installation folder is detected, the wrong package will be installed. Therefore, it is advisable to use the Z switch instead. |
✔ | ✔ | Use the data in the installer
|
Examples
Install Total Commander 10.52 32-bit and suggest the install folder "c:\Program Files\totalcmd" if no previous installation folder is detected on the computer.
tcmd1052x32.exe
Install Total Commander 10.52 64-bit and suggest the install folder "c:\Program Files\Total Commander" if no previous installation folder is detected. Also install the license file WINCMD.KEY if it is found in the same folder as the installer.
tcmd1052x64.exe /K c:\Program Files\Total Commander
Auto-install Total Commander 10.52 64+32-bit. Use the install folder "c:\Program Files\Total Commander" if no previous installation folder is detected. Otherwise, install in the previously used installation folder and perform an update if the program already exists in that folder. Do a quiet install, don't show anything on screen.
tcmd1052x32_64.exe /AH1 c:\Program Files\Total Commander
Suppose you created a custom installation package named AUTOINSTALL.ZIP which does an automatic installation by default. You want to use the data from this package, but this time you want to do an interactive installation.
tcmd1052x32.exe /A0 c:\subdir\AUTOINSTALL.ZIP
For a company you want to create a batch file that people in the company can use to install Total Commander on their computers. This batch file should install Total Commander 64+32-bit. To prevent that people using 32-bit systems can use this batch file, you use the installer for Total Commander 64-bit to install the data from the installer for Total Commander 64+32-bit. (You want people using 32-bit systems to use a different batch file to install the 32-bit version only.) The company wants that the Polish language is used and that no other languages will be installed. The company license file should be installed too. Normal users without administrative rights must also be able to install Total Commander. The batch file could look like this:
cd /D "E:\TC install files" tcmd1052x64.exe /Z"tcmd1052x32_64.exe"KFAL12M0 c:\Total Commander