Unable to install TC automatically in Progam Files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Octopuss
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-30, 13:15 UTC

Unable to install TC automatically in Progam Files

Post by *Octopuss »

I am going absolutely crazy here.
I want TC to automatically install under Program Files in 64bit Windows.
No matter what I do, it always ends up in c:\totalcmd.

This is the relevant part of install.inf:

Code: Select all

[Installation]
program=Total Commander 64 bit
progver=8.51
progvermajor=8
progverminor=5109
progname=Total Commander
copyright=Copyright © 1993-2014 by Christian Ghisler, All Rights reserved
url=http://www.ghisler.com
publisher=Ghisler Software GmbH
updatecheck=totalcmd64.exe
// User for shortcut creation: Blank for current user, * for all users, or give user name
UserName=*

[auto]
// Set auto=1 for automatic installation, hidden=1 for invisible installer, with parameters below and from [Installation]
auto=1
hidden=1
lang=1
alllang=0
iniloc=%programfiles%\Total Commander
iniall=1
mkgroup=1
mkdesktop=1

[Versioncheck]
Vernum=2

[Not running]
1=WINDOW,Total Commander
2=TTOTAL_CMD,Total Commander
3=TTOTAL_CMD.UnicodeClass,Total Commander
4=TApplication,Total Commander,Total Commander

[Destination]
Dir=%programfiles%\Total Commander
Ini=wincmd.ini,Configuration,InstallDir
In the wincmd.ini I have
[Configuration]
InstallDir=%programfiles%\Total Commander

The only thing that works as expected is the ini file. It ends up in whatever folder I specify in it, but the program itself simply installs itself in the root folder and isn't even aware of the ini file.
I also tried enclosing the paths in quotes but it didn't help.
Help!
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

First things first, to be clear:
can we assume your 64-Bit OS is Win7?
and you do not install as elevated Administrator?
And what do you mean with "automatically install"? How? What? Where?
User avatar
Dalai
Power Member
Power Member
Posts: 10035
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Did you delete HKLM\Software\Ghisler and HKCU\Software\Ghisler - and since you're on Windows x64 - HKLM\Software\Wow6432Node\Ghisler before launching the installation? TC will install itself to the folder it was installed before, no matter what you specifiy in the install.inf, if the mentions keys are present.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

With the latest self-extracting installer, you can set
IgnoreOldLocation=1
under section [Destination] to ignore all previous installations of TC.

Here is the new installer package:
https://plugins.ghisler.com/addons/newinstaller.zip

It contains two exes, 32-bit and 64-bit. Use the 32-bit one for 32-bit or combined installer. Rename to sfxhead.sfx and put in TC directory. Then set ZIP compression to 0 (stored) and pack the install files.

For the combined 32+64-bit version installer, you can also start with this package and just modify the inf file. Again make sure to re-pack it with compression 0 (stored).
https://plugins.ghisler.com/addons/tcmd851ax32_64auto.exe
Author of Total Commander
https://www.ghisler.com
Post Reply