Installer: Difference between revisions
(Italicized "(TC 11.00+)", improved descriptions of S and R and I switch, improved text formatting in the table) |
(Removed info about the old 16-bit installer, because the info on this page does not apply to that installer) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
There are | There are 3 '''installers''' available to install current versions of [[Total Commander]]: | ||
# Installer for Total Commander 64-bit | # Installer for Total Commander 64-bit | ||
# Installer for Total Commander 64+32-bit | # Installer for Total Commander 64+32-bit | ||
# Installer for Total Commander | # Installer for Total Commander 32-bit | ||
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-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. | ||
Line 78: | Line 77: | ||
| L[1-18] | | L[1-18] | ||
| Language to be used in Total Commander | | Language to be used in Total Commander | ||
1 = English | 1 = English | ||
2 = German | 2 = German | ||
Line 96: | Line 96: | ||
17 = Simplified Chinese | 17 = Simplified Chinese | ||
18 = Romanian | 18 = Romanian | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| style="text-align:center;" | | | style="text-align:center;" | | ||
Line 126: | Line 127: | ||
| W[0-2] | | W[0-2] | ||
| Write-protect the installation folder | | Write-protect the installation folder | ||
W0 = Don't set rights (rights are inherited from the parent folder)<br /> <!-- | W0 = Don't set rights (rights are inherited from the parent folder)<br /> <!-- | ||
--> W1 = Write rights for currently logged on user only<br /> <!-- | --> W1 = Write rights for currently logged on user only<br /> <!-- | ||
--> W2 = Write rights for elevated users only (like in c:\Program Files) | --> W2 = Write rights for elevated users only (like in c:\Program Files) | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| style="text-align:center;" | | | style="text-align:center;" | | ||
Line 144: | Line 147: | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| If a previous installation folder is found, use that folder (ignore the installfolder parameter). | | 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) | If a previous installation is found in the installation folder, do an update (auto install) or offer to update (interactive install) | ||
|- | |- | ||
| S | | S | ||
Line 160: | Line 165: | ||
| I[0 <nowiki>|</nowiki> 1]"folder" | | I[0 <nowiki>|</nowiki> 1]"folder" | ||
| Set the folder of the main configuration files [[wincmd.ini]] and [[wcx_ftp.ini]]. ''(TC 11.00+)'' | | Set the folder of the main configuration files [[wincmd.ini]] and [[wcx_ftp.ini]]. ''(TC 11.00+)'' | ||
Use /I".\" for configuration files in the program folder. | Use /I".\" for configuration files in the program folder. | ||
Supports parameter 1 to set the folder for all users, or 0 to not write to the Windows registry, e.g. /I1".\" for configuration files in the program folder for all users, or /I0 for not writing to the registry | Supports parameter 1 to set the folder for all users, or 0 to not write to the Windows registry, e.g. /I1".\" for configuration files in the program folder for all users, or /I0 for not writing to the registry | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| | | Use the folder set in the Widows registry from a previous install. | ||
Otherwise use the program folder if the user has write access in it. | |||
Otherwise use the user-specific AppData folder | |||
|- | |- | ||
| N"user" | | N"user" | ||
Line 180: | Line 193: | ||
|- | |- | ||
| installfolder | | installfolder | ||
| Installation folder where Total Commander will be installed | | Installation folder where Total Commander will be installed. | ||
The specified folder will be ignored if a previous installation folder is found, unless switch F is used | |||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| "c:\Program Files\totalcmd" | | "c:\Program Files\totalcmd" | ||
"c:\totalcmd" if the user fails to run the installer elevated (with administrative rights) | "c:\totalcmd" if the user fails to run the installer elevated (with administrative rights) | ||
|- | |- | ||
| datafile | | 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. | | 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. | 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. | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} | ||
| style="text-align:center;" | {{Check mark}} | | style="text-align:center;" | {{Check mark}} |
Latest revision as of 14:25, 19 October 2023
There are 3 installers available to install current versions of Total Commander:
- Installer for Total Commander 64-bit
- Installer for Total Commander 64+32-bit
- Installer for Total Commander 32-bit
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!
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) |
✔ | 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) |
S | Do not install any files to system folders (windows or system). (TC 11.00+) | ✔ | ✔ | Allow installing to system folders |
R | Do not add uninstall information to the registry, e.g. for a portable installation. (TC 11.00+) | ✔ | ✔ | Add uninstall information to the registry |
I[0 | 1]"folder" | Set the folder of the main configuration files wincmd.ini and wcx_ftp.ini. (TC 11.00+)
Use /I".\" for configuration files in the program folder. Supports parameter 1 to set the folder for all users, or 0 to not write to the Windows registry, e.g. /I1".\" for configuration files in the program folder for all users, or /I0 for not writing to the registry |
✔ | ✔ | Use the folder set in the Widows registry from a previous install.
Otherwise use the program folder if the user has write access in it. Otherwise use the user-specific AppData folder |
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.
The specified folder 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