JclIDEUtils: Add IDEUpdateNumber property to get RAD Studio update info#175
Conversation
|
The JCL has never distinguished product patches, why should it start now? |
|
@obones RAD Studio currently adds new features in some minor versions. Some features can be checked through other means to determine whether the current IDE supports them, such as 64-bit IDE in 12.3 and Arm64EC in 13.1. However, for some new features, the only way to check whether the current IDE supports them seems to be by checking the IDE version number, such as LSIF newly added in version 13.1. The main purpose of this PR is to obtain the minor version number for version checking. |
|
They are product patches, not fully fledge releases, as told by Embarcadero themselves and as shown by the fact that they keep the same compiler and DCU versions The JCL has always insisted that users install the latest patches for the library to work properly. For instance, in the Delphi 7 ear, the JCL was not installable if you did not apply all the patches. |
|
Delphi 13.1 introduced the LSIF feature for generating index files for DelphiLSP. These files can be generated by passing the |
I get it. But I feel like this needs to change.Versions like 12.3 or 13.1 aren't just simple patches. |
Why do you feel this needs to change? Because you can only install different 'main' versions side by side, not different 'minor' versions. |
RAD Studio is subscription-based — what about users who have to stick with older versions because they've let their subscription lapse? I'm aware that 13 and 13.1 are binary compatible and cannot be installed side by side. But versions like 12.3 and 13.1 have added a substantial number of core features, and Embarcadero no longer classifies these releases as "patch versions." |
During the RAD Studio 12.3 installation process, the 64-bit IDE itself is offered as an optional component — and one that is unchecked by default, no less. Forcing users to install it is a questionable policy in and of itself. |
Don't know how the subscription works anymore (because we stopped it years ago - still on Delphi XE2). If not, I do see a valid point for implementing the 'minor' version support. |
810c57b to
4ab9bb7
Compare
IDEUpdateNumber property to get RAD Studio update info
Can I obtain updates and hotfixes without a subscription? |
|
@obones It's your call now. |
|
What do you think @ahausladen ? |
|
Because the And the PR doesn't change existing code. So from my standpoint it could be merged. |
There is currently no way to check if the current IDE version is RAD Studio 13.1 or later.
After this PR is merged, the following approach will be available:
IDEVersionNumber >= 37 and IDEUpdateNumber >= 1.The implementation reads the
InstalledUpdates\Main Product Updateregistry key. This information is also displayed in the IDE's About dialog. I checked the registry and this appears to be the only way to retrieve it.