How to make installation fully automatic?

From TotalcmdWiki
Jump to: navigation, search

The following instructions are for Total Commander 8.52 and newer:

The current self-extracting installer no longer contains the program install.exe because it is no longer needed: install.exe is now in front of the installation data.

There are 3 ways to make a fully automatic installation:

1. Pass command line parameters to the unmodified installer in the form /AHLMGDUK

A=auto install,
H=run hidden,
L=language number,
M=install multiple languages,
G=create group in start menu,
D=create desktop icon,
U=update if target exists,
K=install wincmd.key from the same directory where the installer is located.
All options accept a paramter 1 or 0, e.g. G0 or G1. L accepts a language number from install.inf, e.g. L2=german
Hint: All options must be passed as a single parameter behind / and not as separate parameters.


2. Download the new self-extracting installer

  • Download from here: sfxhead_installer.zip
  • a) To create a pure 64-bit installer, unpack the 64-bit sfxhead.sfx to the Total Commander folder.

or

  • b) To create a 32-bit or combined 32+64-bit installer, unpack the 32-bit sfxhead.sfx to the Total Commander folder.
  • Now open the installer file tcmd9xy.exe with Ctrl+PageDown
  • Unpack all the files with F5 to an empty directory
  • Edit the install.inf file with F4.
  • There is a section [auto], where you need to set auto= to 1.
  • You can also make changes to the default settings there, and change the target location in [Destination]. The installer will ignore this location if a previous installation is found, unless you set the option IgnoreOldLocation=1.
  • In menu Configuration - Options - ZIP packer, set the pack rate to '0' (store)
  • Select all the unpacked files
  • Pack them with Alt+F5, and check the option to create a self-extracting archive. This will use the sfxhead.sfx installer from the first two steps described above.

3. Download the old installer

  • Download from here: installer.zip
  • Now open the installer file tcmd9xy.exe with Ctrl+PageDown
  • Unpack all the files with F5 to an empty directory
  • add install.exe or install64.exe
  • Edit the install.inf file with F4.
  • There is a section [auto], where you need to set auto= to 1.
  • You can also make changes to the default settings there, and change the target location in [Destination]. The installer will ignore this location if a previous installation is found, unless you set the option IgnoreOldLocation=1.
  • Put the entire install directory in the root of a CD

Back to Installation