Tagged: Version SendFileVersionInfo
- This topic has 3 replies, 2 voices, and was last updated 2025-04-16 at 1:32 pm by
Ray Konopka.
-
AuthorPosts
-
-
March 31, 2025 at 7:31 am #4098
Hi Ray,
Is it possible to retrieve the version of the CodeSite Tool that I am connecting to?
I was not able to find this in the Help document.I would like to inform users when they are using an old version.
Also I would like this information to appear in the log files.
Kind regards,
Hans Brand -
March 31, 2025 at 11:18 am #4099
Hi Hans,
Interesting question. There is no built-in way to get that information, but we can leverage the SendFileVersionInfo method in the TCodeSiteLogger. For example, the following code shows how to get the file path to the CSDispatcher.exe from the Registry and then use the SendFileVersionInfo method to send the version info the CodeSite destination. The version number is listed in the details. Perhaps this will help until I can put something a little more elegant into the product.
Ray
uses System.Win.Registry, CodeSiteLogging, CodeSitePlatform; procedure TForm45.RzButton1Click(Sender: TObject); var R: TRegistry; DispatcherFileName: string; begin R := TRegistry.Create; try R.RootKey := HKEY_LOCAL_MACHINE; if R.OpenKeyReadOnly( CodeSiteRegKey ) then DispatcherFileName := R.ReadString( 'Dispatcher' ) else if R.OpenKeyReadOnly( CodeSitePoliciesRegKey ) then DispatcherFileName := R.ReadString( 'Dispatcher' ); R.CloseKey; finally R.Free; end; if DispatcherFileName = '' then DispatcherFileName := StrDispatcherExeName; CodeSite.SendFileVersionInfo( DispatcherFileName ); end;
-
April 2, 2025 at 6:38 am #4100
Dear Ray,
Thank you for your interest in providing this functionality in future versions of CodeSite.
In the meantime, I would have liked to use your suggestion using the SendFileVersionInfo function.
However, in contrast to the documentation, this function is not available in the Express version of CodeSite?
Kind regards,
HansPS.
The CodeSite Studio 5 price is $399.
Is this a one buy offer or an annual subscription?
And how does this include future updates? -
April 16, 2025 at 1:32 pm #4107
Hi Hans,
I’m sorry for the long delay. Somehow my notifications got turned off. CodeSite Studio 5 is sold as a traditional license and not an annual subscription. There is no charge for updates to the same major version.
Ray
-
-
AuthorPosts
- You must be logged in to reply to this topic.