[TC11 64bit/installer]: Installer does not detect existing installation

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

[TC11 64bit/installer]: Installer does not detect existing installation

Post by *CoolWater »

When upgrading from 10.52 64bit to 11 64bit, the installer didn't ask to replace the current installation. Instead, the default install dir was set to "c:\totalcmd11".

Maybe this is a leftover from beta installer?

CoolWater
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *ghisler(Author) »

The installer remembers the last install location in the registry:
HKEY_CURRENT_USER\Software\Total Commander
So when you installed the beta to c:\totalcmd11, it will use that the next time you install an update. It doesn't differentiate between old release version and beta version installs.
Author of Total Commander
https://www.ghisler.com
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *CoolWater »

This happened on my production system where I didn't install any TC 11 beta at all...

That's why I thought, it could be a leftover from a beta installer.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *petermad »

HKEY_CURRENT_USER\Software\Total Commander
Shouldn't that be:
HKEY_CURRENT_USER\Software\Ghisler\Total Commander

Anyway - I don't have an InstallDir key in neither of the 3 Registry entries:
HKEY_CURRENT_USER\Software\Ghisler\Total Commander
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ghisler\Total Commander

But still - the installer correctly suggests the C:\totalcmd folder when I use the 64bit version installer, but does not suggest anything when I use the 32bit version installer.

Is there a chance that TC uses the info in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Totalcmd64

I do NOT have a similar entry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Totalcmd
probably bexause I have never let the 32bit installer run the installation (I just extract the files from the installers manually).
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *ghisler(Author) »

The installer looks in the following locations for the last install dir:
HKEY_CURRENT_USER\Software\Ghisler\Total Commander
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ghisler\Total Commander
If this doesn't return any results, it looks for the last wincmd.ini , for the key InstallDir in section [Configuration].
If this doesn't return anything either, it uses the value Dir from section [Destination] in INSTALL.INF. By default, this is set to %TotalcmdDefaultDir%, which will translate to c:\Program Files\totalcmd

I don't know where c:\totalcmd11 comes from, maybe it was in the wincmd.ini? Its location is determined from the same registry keys above, otherwise the default location is %APPDATA%\GHISLER\wincmd.ini
Author of Total Commander
https://www.ghisler.com
CoolWater
Power Member
Power Member
Posts: 737
Joined: 2003-03-27, 16:33 UTC

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *CoolWater »

Thats really strange. My installation dir always was "d:\totalcmd".

I thought maybe the beta installer didn't want to overwrite a previous (final) installation. And maybe that part of the souce code is still in the final installer.

If I now re-run the installer, everything seems to be correct.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *ghisler(Author) »

It remembers the last installation target in multiple places, see above.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11 64bit/installer]: Installer does not detect existing installation

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply