AEM 5.6.1.
I have a package. I'd like to be able to 'sniff' the version of AEM a user/administraor is using when attempting to install the package.
The version is available in the front-end via Tools -> Web Console -> Main -> Product Information
I appreciate I could parse the above page and extract but surely there's a more elegant way to do it?
I've looked through Adobe docs on Packages: (I would post links but SO complaining I've not got enough reputation) And had a good hunt around SO.
The closest I've come is through this doc: https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html and assuming that the details found in CRX @ /etc/packages/day:
- cq5
- cq560
- cq561
represent a typical install?