Installer

From TotalcmdWiki
Revision as of 14:46, 9 January 2023 by White (talk | contribs) (First creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are 4 installers available to install Total Commander:

  1. Installer for Total Commander 64-bit
  2. Installer for Total Commander 64+32-bit
  3. Installer for Total Commander (32-bit)
  4. Installer for Total Commander (16-bit) (no longer developed)

The Total Commander 64-bit installer can only be used on a 64-bit system. If Total Commander 32-bit was already installed on the computer, it is generally recommended to install Total Commander 64-bit in the same folder.

The Total Commander 64+32-bit installer installs both versions in the same folder. The main reason to use this installer is because some plugins may only be available as a 32-bit version. The Total Commander 64+32-bit installer can also be used on a 32-bit system, for example to update Total Commander over a network on a 64-bit system. Or to install Total Commander on a 32-bit system if you don't have another installer available and you don't mind the unusable 64-bit files on your computer.

Filenames of the installers typically look like this:
tcmd1052x32_64.exe
tc1052x32_b1.exe
tc1052x64_rc3.exe

It is also possible to create a custom installer.

Command line parameters

Normally you don't need to use command line parameters to install Total Commander. Once you run the installer, it will ask you all the relevant questions to install Total Commander. Specialized options, such as automatic installation and installing a license file, are available through command line parameters. The syntax is as follows:

installer [/switches] [installfolder | datafile]

The following parameters are supported:

  • A parameter that consists of a slash (/) followed by one or more switches. If used, this parameter must always be the first parameter.
  • The installation folder. This is always the last parameter.
  • A filename of a file with installation data. This is always the last parameter.

If you want to specify the installation folder and a data file, you must specify the data file using switch Z.

Examples:

tcmd1052x32.exe /A
tcmd1052x64.exe c:\Program Files\Total Commander
tcmd1052x64.exe d:\subdir\INSTALL.ZIP
tcmd1052x32_64.exe /A1D0FZ"d:\subdir\INSTALL.ZIP" c:\Program Files\Total Commander

By default, the installer ignores the specified installation folder if it detects a previously used installation folder. You must use switch F to force the installer to use the specified folder.

If Total Commander has been installed before, it is generally recommended to install in the same folder again. Because even if you have uninstalled Total Commander, your plugins, your settings and most importantly your license file might still be there.

Description of switches and parameters

Below is a table with descriptions of the switches and parameters. The columns "Auto install" and "Interactive install" indicate whether a switch or parameter has an effect on an automatic installation and/or an interactive installation.

Many switches can be turned off by adding a 0, or turned on by adding a 1. If you omit the number, 1 is assumed. So using switch H is the same as using switch H1.

Switches can be specified in any order.

Important: Switches must be in capital letters!

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.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

See also

External link