Find and share HowTos to various installations / configurations!
6 posts • Page 1 of 1
6 posts
• Page 1 of 1
fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am
How can you determine that you are using 3.14 Patch 8
Postby fmulder »
3.14 Patch8 fixed an bug and it is important that all our engineers use this version. That is why I wanted to implemented a check that runs when the Gedi is started. I want to show a popup when an engineer is NOT using the 3.14P8 version.
I tried several constants but they will only say 3.14 (and not the patch number)
Re: How can you determine that you are using 3.14 Patch 8
Postby agruber »
Unfortunately there is no variable or function which returns the patch level in 3.14. One way is to check the readme files, an example can be found in our about.pnl.
Starting with 3.15 there is a new CTRL function, yet undocumented:
anytype getVersionInfo(string key)
key (alternative name) / result value ():
version / string / example "3.15"
display / string / example "3.15"
numeric / unsigned int / example 315000
platform / string / example "Linux x86_64"
major / unsigned int / example 3
minor / unsigned int / example 15 patch / unsigned int / example 17
Re: How can you determine that you are using 3.14 Patch 8
Postby Gertjan van Schijndel »
The 'webclient_http.ctl' script uses another solution, it checks the webclient installation files (see function 'getFileVersion').
If the patch increases the value in the datapoint element '_DatabaseVersion.Sub', than it would be the easiest solution to check this value. But this value is not incremented with every patch.
Re: How can you determine that you are using 3.14 Patch 8
Postby agruber »
To avoid confusion about the _DatabaseVersion. This cannot be used to verify the patch level.
It defines the version of the internal database structure. It would be increased with a patch, if there needs to be some internal datapoint type updated. In the past this was a manual task. As a patch does not necessarily update the database, the version likely differs from the installed patch. That is perfectly normal.