Installation always ends up in \\Program Files

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

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

Installation always ends up in \\Program Files

Post by *Octopuss »

On Windows7 64bit, despite setting a path in install.inf to either %ProgramFiles% or %ProgramW6432% (I tend to use the former but tried both), TC always ends up in C:\Program Files (x86)\

Interesting detail: configuration file DOES get created in C:\Program Files\

There must be a very little bug related to paths somewhere in the installator.

Relevant part of my install.inf:

Code: Select all

[Installation]
program=Total Commander 64 bit
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=totalcmd64.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]
auto=1
hidden=0
lang=1
alllang=1
iniloc=%ProgramFiles%\totalcmd
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%\totalcmd
Ini=wincmd.ini,Configuration,InstallDir
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

The destination directory is ignored, if there already is/was TC installed. In that case, the installer always does an upgrade.
See http://ghisler.ch/board/viewtopic.php?t=11119
Windows 10 Pro x64, Windows 11 Pro x64
Octopuss
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-30, 13:15 UTC

Post by *Octopuss »

Not this case, I uninstalled and completely removed everything first.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Sorry, but I will not write same answers to two threads. Please, check my answer from your other thread (http://ghisler.ch/board/viewtopic.php?t=34554) and decide, in which one we should continue this discussion.
Windows 10 Pro x64, Windows 11 Pro x64
Octopuss
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-30, 13:15 UTC

Post by *Octopuss »

I am sorry :) Guess this section is more appropriate.
umbra wrote:2Octopuss
Unfortunately that doesn't help. You have to manually delete its install path from registry. Search for these keys:

Code: Select all

HKEY_CURRENT_USER\Software\Ghisler\Total Commander
HKEY_CURRENT_USER\Software\Wow6432Node\Ghisler\Total Commander
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ghisler\Total Commander
Ha! Now we're onto something. It IS a bug then, but different than I originally thought.
As much as this is possibly (half) intentional behavior, I strongly disagree. This is prime example of why registry cleaners exist in the first place.

When software is being uninstalled, EVERYTHING should be eliminated, there's - in my opinion - no argument about that. This of course is not 1% as bad as such mess other applications are capable of producing.

I just find it weird stuff is left in registry when you get the option to remove configuration files and other stuff during installation. That is like making double sure the user really wants to uninstall the program. No point in keeping registry entries at all.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

I just find it weird stuff is left in registry when you get the option to remove configuration files and other stuff during installation.
I agree with you. But I don't know, if the current implementation (one shared registry for all installations) allows that.
Windows 10 Pro x64, Windows 11 Pro x64
Octopuss
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-30, 13:15 UTC

Post by *Octopuss »

I certainly hope Christian will comment on this :)
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

When software is being uninstalled, EVERYTHING should be eliminated
I agree on that. Perhaps an option during uninstallation to keep registry settings, could satisfy everyone...
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is intentional - some people think that they have to remove the old version before installing the new, which is just wrong. It would be very bad to remove the location for these people when uninstalling.
Author of Total Commander
https://www.ghisler.com
Post Reply