Detect XP/VS version resource programatically

Roman Miklautz
2010-04-20 17:54

The easiest way is to look under the following registry key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3DAA3FD6-B833-477C-A2EA-C56ACED3AC02}]

There you have two values that might provide what you need:

    "DisplayVersion"="1.0.390"
    "DisplayName"="Thinstuff XP/VS Terminal Server 1.0.390"


Another more complicated  option would be to look at the version resource of the ThinrdpAdmin.exe file.
Please see MSDN info about the Resource Version Information.

In order to retrieve the full path of the thinrdpadmin.exe file you first have to query the registry for the Thinstuff  installation folder and then append the filename.


The installation folder is saved under [HKEY_LOCAL_MACHINE\SOFTWARE\Thinstuff\XPVS]:
    "InstallDir"="C:\\Program Files\\Thinstuff\\XPVS Server\\"

Tags: code, detect xp/vs version, Version Information, version resource, XP/VS Server