[TC 10.52] License key in registry not searched in all registry locations

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5217
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 10.52] License key in registry not searched in all registry locations

Post by *white »

Help wrote: With KeyPath=$, TC looks for the key in the registry (binary value "key" in "Software/Ghisler/Total Commander" subkey).
HISTORY.TXT wrote: 21.01.19 Added: Always look in registry for key if no wincmd.key file is found in the supported locations (32/64)
You can add the license key to the registry for all users by adding the key to the HKEY_LOCAL_MACHINE branch. However on a 64-bit system, 64-bit TC only looks in "HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander" and 32-bit TC only looks in "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ghisler\Total Commander". So you need to add the license twice to the registry if both 64-bit and 32-bit TC are used. I think TC should check both registry locations for the license key.
User avatar
petermad
Power Member
Power Member
Posts: 15560
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52] License key in registry not searched in all registry locations

Post by *petermad »

I only have the key in HKEY_CURRENT_USER\Software\Ghisler\Total Commander and if works for both 64 and 32bit TC that way, but of couse for that one user.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
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: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52] License key in registry not searched in all registry locations

Post by *ghisler(Author) »

I agree that it would be better to check both locations under HKEY_LOCAL_MACHINE.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52] License key in registry not searched in all registry locations

Post by *ghisler(Author) »

This should be fixed in TC 11 beta, please test it.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5217
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.52] License key in registry not searched in all registry locations

Post by *white »

Tested OK using TC 11.00b1.

Moderator message from: white » 2023-05-04, 00:31 UTC

Moved to Fixed bugs.
Post Reply