TotalCommander

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

TotalCommander is a Shareware file manager.


TotalCommander 8.51a[edit]

<package
	id="totalcmd"
	name="Total Commander"
	revision="%PKG_SHORTVERSION%"
	reboot="false"
	priority="1">
		
	<variable name="PKG_VERSION"      value="8.5.1.1" />
	<variable name="PKG_SHORTVERSION" value="851a" />
	<variable name="PKG_SOURCE"       value="%SOFTWARE%\TotalCommander" />
	 
	<check type="file" condition="versionequalto" path="%ProgramFiles(x86)%\Total Commander\totalcmd.exe" value="%PKG_VERSION%" />
		
	<commands>		
		<command type="install" cmd='%PKG_SOURCE%\tcm%PKG_SHORTVERSION%x32_64_auto.exe' />
		<command type="upgrade" include="install" />
		<command type="remove" cmd='%ProgramFiles(x86)%\totalcmd\TCUNINST.EXE /7' />
	</commands>
</package>

The new version 8 is the first 64bit-version of Total Commander. Because not all plugins are already compatible with the 64-bit Version, there is still a 32bit-Version available. It is recommended to use the installer with both versions and install them into %ProgramFiles(x86)%.

TotalCommander 7.56a[edit]

<package
	id="totalcmd"
	name="Total Commander"
	revision="1"
	reboot="false"
	priority="1">
	<variable name="version" value="7.5.6.1" />
	<variable name="shortversion" value="756a" />
		
	<check type="file" condition="versionequalto" path="%ProgramFiles(x86)%\totalcmd\totalcmd.exe" value="%version%" />
		
	<install cmd='%SOFTWARE%\TotalCommander\tcmdr%shortversion%_auto.exe' />
	<upgrade cmd='%SOFTWARE%\TotalCommander\tcmdr%shortversion%_auto.exe' />
		
	<remove cmd='%ProgramFiles(x86)%\totalcmd\TCUNINST.EXE /7' />
</package>

Preparation[edit]

The provided installer is not able to perform a silent install. However, it is possible to unpack the installer, make changes that are enable it to install silently, and repack it. Because the installer is digitally signed, you need a special version of sfxhead.sfx to repack it.

  1. Install TotalCommander locally
  2. Get the installer SFX EXE: http://ghisler.fileburst.com/addons/newinstaller.zip
  3. Unpack newinstaller.zip. rename install32.exe or install64.exe to sfxhead.sfx (depending weather you want an 32 or64bit intall) and move it to the local TotalCommander directory (rename the existing sfxhead.sfx to sfxhead.sfx.org)
  4. Download the installer tcmd851ax32_64.exe
  5. Unpack the installer to a new directory (press STRG+Page Down)
  6. Modify install.inf or install64.inf (depending of corresponding sfxhead.sfx) and add your files (i.e. wincmd.key for license and windcmd.ini for more settings). See the TotalCommander Wiki and Forum
  7. Create a new zip file with the option "self extracting archive", name it i.e. tcmdr851a_auto.exe. Set compression rate to "0" first
  8. Rename the old sfxhead.sfx

install.inf[edit]

Edit the provided install.inf as you need it. The following is only an example of the lines that have been changed, do not use it as your actual install.inf!

[Installation]
program=Total Commander 32+64bit
progver=8.0
progvermajor=8
progverminor=0128
progname=Total Commander
copyright=Copyright © 1993-2012 by Christian Ghisler, All Rights reserved
url=http://www.ghisler.com
publisher=Ghisler Software GmbH
updatecheck=totalcmd.exe
// User for shortcut creation: Blank for current user, * for all users
UserName=*

[auto]
// Set auto=1 for automatic installation, hidden=1 for invisible installer, with parameters below and from [Installation]
// lang= sets language, alllang=1 installs all other languages, iniloc=c:\wincmd sets ini location
// iniall=1 sets ini location for all users, mkgroup=1 creates Start menu group, mkdesktop=1 makes desktop icon
// Install dir is determined by previous installation location, or [Destination], Dir=

auto=1
hidden=1
lang=2
alllang=0
iniloc=%ProgramFiles(x86)%\totalcmd
iniall=1
mkgroup=1
mkdesktop=1

[Destination]
Dir=%ProgramFiles(x86)%\totalcmd
Ini=wincmd.ini,Configuration,InstallDir

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

wincmd.ini[edit]

If you want to have only one setting for any resolution you encounter, you can configure TC that way. You have to open your wincmd.ini, add "ResolutionSpecific=0" to its "[Configuration]" section and rename one your resolution settings (something like "[1366x768 (8x16)]") to "[AllResolutions]". After next start of TC, only that section will be used for such settings.

Instead of providing a wincmd.ini with the installer it is also possible to add settings to the [ini] section of install.inf.