What are the rules for detecting multiple versions of TC on a machine?

Apr 13, 2010
314
7
61
The Hague
I am writing about getting version info out of the registry, not registering a payed version.

Also, have all versions of TakeCommand always recorded their versions in the same way and/or location?
I would like to know the differences, if any.

Regards, DJ.
 
Apr 2, 2011
1,460
10
54
North Carolina, USA
I think all versions are stored under [HKEY_CURRENT_USER\Software\JP Software] but that is per user - not per machine. Looking elsewhere there is [HKEY_LOCAL_MACHINE\SOFTWARE\JP Software] but the subkeys are for e.g. [HKEY_LOCAL_MACHINE\SOFTWARE\JP Software\{00613661-AD4C-4788-A55A-123CA56693B3}] which points to [HKEY_LOCAL_MACHINE\SOFTWARE\Caphyon\Advanced Installer\Installs\{00613661-AD4C-4788-A55A-123CA56693B3}] and isn't Rex using some Advanced installer?
 
Aug 3, 2016
376
9
Netherlands
As Take Command is installed through Windows Installer (MSI), you gould enumerate all the keys under HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\
and for each key find InstallProperties\DisplayName.

Or...
You could use a WMI query to automate these steps. I use Microsoft's WMIC.exe, but WMIQUERY should do fine, too.

I haven't installed Take Command, so this example will be for Visual C++ runtimes.
Code:
wmic.exe product where "Name like 'Microsoft Visual%'" get Name

Mind the %: that's WMI's version of a (*) wildcard. When this command is used in a batchfile it should be replaced by %%

Output:

Code:
Name
Microsoft Visual C++ 2015 x86 Minimum Runtime - 14.0.24212
Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219
Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.21005
Microsoft Visual C++ 2015 x64 Minimum Runtime - 14.0.24212
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.60610
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161
Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.21005
Microsoft Visual C++ 2012 x64 Minimum Runtime - 11.0.61030
Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.17



EDIT: There's more information available with this WMI query, like InstallDate.
This command gives you all the available information:
Code:
wmic.exe product where "Name like 'Microsoft Visual%'" get  Description, IdentifyingNumber, InstallDate, InstallLocation, InstallState, Name, PackageCache, SKUNumber, Vendor, Version
 
Last edited:
Apr 13, 2010
314
7
61
The Hague
Thanks guys but I did browse the registry up and down, left and right, but before endeavoring to build something I would like to hear from the only reliable source around here.

@Rex: would you be so kind?

Regards, DJ.
 
Nov 2, 2008
234
2
4nt/tc32 up to ver 4 modify the actual exe file, the brand proggie modifies this. vers 5 to 7 store registry data for the brand-key. vers 8 stores it either in the registry, or in an INI file in the app directory.

I have not looked at tcc, but they use a stranger method of registration.

Currently i run 4dos 8, 4nt 8 and tcc 20 under vista 6.1 (seven), and v 18 or something on the surface. But as a matter of exercise, all of the versions i have registration for up to 8 are registered on this computer too.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
There isn't any built-in way of detecting multiple versions of TCMD. 99% of our users only run one version, and when they upgrade they overwrite the previous version.

Different versions of TCMD will use different registry key names and values; there is no guarantee that v21 will look like v20.

If you really need to do this, you'll have to enumerate the registry keys as the other responders have said, and you'll probably have to redo it for each new version.
 
Apr 13, 2010
314
7
61
The Hague
Thanks. What is the oldest version of TC that is still supported?

If you see me registering a lot of old versions on your server now you know why :smile:

Regards, DJ.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Firewall rules? Support 6
Gorlash usage rules ?? Support 2
Alpengreis Windows Firewall Rules will be deleted Support 7
Alpengreis Win Firewall Inbound Rules (TCMD 16.x) Support 10
mikea How to? Detecting clipboard format Support 7
S Detecting existence of internet connection Support 11
Stefano Piccardi detecting BOM, FFIND multibyte regex Support 18
S Hard links - detecting their presence Support 2
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
N Unable to bind multiple keys to the same key mapping directive Support 9
vefatica Console not redrawn in BTM or with multiple commands Support 4
C duplicate files in multiple plugin sites Support 9
kb6ojs ALIAS with multiple commands? Support 9
vefatica How do I do this with a multiple-line DO? Support 7
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
R How to? Append files in multiple subfolders using copy? Support 8
N multiple command alias and redirection Support 0
B Can copy command concatenate multiple mp3 files Support 2
C INSTALLED returnes same program multiple times Support 14
M Delete multiple Alternate Datastreams Support 5
C FOLDERMONITOR inactive with multiple /I Support 1
C WAD VIEW print multiple files - switches fail Support 10
vefatica Multiple instances of help file Support 3
J How to? Array sort according to multiple keys Support 3
Alexander WAD The number of files and dirs are multiplied when using multiple wildcards Support 6
Jay Sage Version 17 Installer Leaves Multiple Copies of ShrAlias Support 48
R Fixed Internal ZIP command fails to process multiple files Support 3
M How to? PDir on multiple wildcard patterns... Support 2
A WAD Dir daterange + multiple path wildcards crashes tcc Support 2
T How to? Using FOLDERMONITOR 1 event causes multiple trigger(ing)s Support 8
samintz How to? Pull out multiple matching lines Support 5
D WAD Multiple TEE causese weird variable scoping? Support 7
L "for" in multiple lines Support 2
S TAR with multiple files and /G Support 2
Frank VIEWing multiple files possible? Support 4
J syntax problems multiple commands (command & command) Support 4
J How do I - ffind - with multiple items Support 10
R multiple monitor 'help' Support 7
H Another multiple FTP password prompt issue Support 2
J tcmd height with multiple monitors Support 2
T Open & Configure multiple TCC windows on STARTUP Support 4

Similar threads