[BUG] Desktop shortcut and problem with finding reg. key
Moderators: Hacker, petermad, Stefan2, white
[BUG] Desktop shortcut and problem with finding reg. key
There seems to be a bug in the shortcut for TC which is created in desktop during installation.
The field "Working directory" (I think it's the right name casue I use Polish Windows so it's of course different) is empty. The same field in the shortcut in Menu Start points to TC folder.
When I start TC with this (desktop) shortcut it can't find registration key and shows that TC is unregistered.
The field "Working directory" (I think it's the right name casue I use Polish Windows so it's of course different) is empty. The same field in the shortcut in Menu Start points to TC folder.
When I start TC with this (desktop) shortcut it can't find registration key and shows that TC is unregistered.
ConfirmedThe field "Working directory" (I think it's the right name casue I use Polish Windows so it's of course different) is empty. The same field in the shortcut in Menu Start points to TC folder.
Not confirmedWhen I start TC with this (desktop) shortcut it can't find registration key and shows that TC is unregistered.
my wincmd.key is inside TC folder
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Why do you use an empty keypath= field? It tells TC to look for the key in the current directory, which will lead to problems if the key isn't in the current dir...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Why? Probably I was testing something with different location of the key. After that I didn't delete whole the entry but only the path.
But it didn't casue any problems. When I start TC with shortcut created by myself it find the key without any problem.
When I run TC with shortcut in Menu Start created during installation it also works correctly - the problem appears only with desktop shortcut cause... it's different (no working directory).
So if you are not going to check it and correct (cause it's really not a big problem- it probably happen only if somebody add such an empty key to wincmd.ini - as I did) you could only add add the working directory to make Menu Start shortcut and Desktop shortcut identical.
But it didn't casue any problems. When I start TC with shortcut created by myself it find the key without any problem.
When I run TC with shortcut in Menu Start created during installation it also works correctly - the problem appears only with desktop shortcut cause... it's different (no working directory).
So if you are not going to check it and correct (cause it's really not a big problem- it probably happen only if somebody add such an empty key to wincmd.ini - as I did) you could only add add the working directory to make Menu Start shortcut and Desktop shortcut identical.
I just did a test install - you are right, there is no working directory set in the shortcut made on the desktop by the Installer - BUT that does NOT prevent a TC started by using the Desktop shortcut from finding MY wincmd.keyThe problem appears only with desktop shortcut cause... it's different (no working directory).

Try and double check if the command line in your Desktop shortcut uses a path to a Total Commander installation that actually HAS a keyfile. Maybe you by accident have installed to another location when that shortcut was made?
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
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
you first said
i did the following test:
1- create empty KeyPath= in wincmd.ini
2. moved wincmd.key to C:\somefolder
3- run TC from shortcut with empty working dir, TC cannot find .key file
4- run TC from shortcut with C:\somefolder in working dir, TC now can find .key file
so, i guess the working directory for shortcut in start menu is refering to your profil dir not TC dir. Am i right?
and nowMy wincmd.key is also in TC folder.
My own one is in my profile directory.




i did the following test:
1- create empty KeyPath= in wincmd.ini
2. moved wincmd.key to C:\somefolder
3- run TC from shortcut with empty working dir, TC cannot find .key file
4- run TC from shortcut with C:\somefolder in working dir, TC now can find .key file
so, i guess the working directory for shortcut in start menu is refering to your profil dir not TC dir. Am i right?
2djk
No - I didn't because you wrote:Did you also have and empty KeyPath= in your wincmd.ini?
Of course you get a problem with an empty keypath= - I don't consider that a bug.But it didn't casue any problems. When I start TC with shortcut created by myself it find the key without any problem.
When I run TC with shortcut in Menu Start created during installation it also works correctly - the problem appears only with desktop shortcut cause... it's different (no working directory).
It doesn't matter - my TC finds it no matter where the wincmd.ini is placed - as long as I don't have an empty keypath.Where is your wincmd.ini located? It probably finds correctly the key if wincmd.ini is in TC folder. My own one is in my profile directory.
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
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
To make it clear I will try to explain it once again.
1. Shortcuts created during installation in Desktop and in Menu Start are different. In the first one (Desktop) "working directory" is empty.
I think both shortcuts should be the same.
2. If there is an empty key in wincmd.ini KeyPath= (I know it's abnormal) usually everything works ok - TC finds the registration key (located in TC folder) without any problem.
3. The problem in finding the registartion key appears probably only if there are three things at the same time:
- the empty KeyPath= in wincmd.ini
- empty "Working directory" in shortcut to TC
- wincmd.ini is not located in TC folder (in my case it's in my profile folder)
BTW: When I started this thread I didn't know that the problem is related to my strange entry in wincmd.ini. Thanks to ts4242 I've found the probable reason.
So now I think we can say that the problem is explained and assuming that nobody else will have such a strange item in wincmd.ini we can close the thread.
The only thing could be improved is making both the shortcuts the same during installation.
1. Shortcuts created during installation in Desktop and in Menu Start are different. In the first one (Desktop) "working directory" is empty.
I think both shortcuts should be the same.
2. If there is an empty key in wincmd.ini KeyPath= (I know it's abnormal) usually everything works ok - TC finds the registration key (located in TC folder) without any problem.
3. The problem in finding the registartion key appears probably only if there are three things at the same time:
- the empty KeyPath= in wincmd.ini
- empty "Working directory" in shortcut to TC
- wincmd.ini is not located in TC folder (in my case it's in my profile folder)
BTW: When I started this thread I didn't know that the problem is related to my strange entry in wincmd.ini. Thanks to ts4242 I've found the probable reason.
So now I think we can say that the problem is explained and assuming that nobody else will have such a strange item in wincmd.ini we can close the thread.
The only thing could be improved is making both the shortcuts the same during installation.