Hi Dojo,
We're working on an application which has a SRM Framework dependency. The idea is that we check in the application package install script if a) the SRM Framework is installed and b) if the version is high enough.
How can we achieve this?
The installation of the SRM framework isn't registered for the moment.
As an alternative you could check the file version of the library. Since version 1.2.24 it matches with the one of the framework.
When using the library in code you could request the version using: typeof(BookingManager).Assembly.GetName().Version
Using the library location you could use: Version.Parse(System.Diagnostics.FileVersionInfo.GetVersionInfo(libraryPath).FileVersion)
The location of the library is:
- For main releases 10.3 and feature releases prior to 2.0: C:\Skyline DataMiner\Files\SLSRMLibrary.dll
- For feature releases from 2.0 onwards: C:\Skyline DataMiner\ProtocolScripts\DllImport\SRM\SLSRMLibrary.dll
Note that Revision is used to indicate the CU number. Also, if you'd like to compare versions, it's recommended to check within the major version.
Hi Jens. The library in the ‘Files’ folder will be removed when installing a 2.0 package. So, if the library is still in that folder, it should be considered as the in use.
Hi Peter, thank you for the alternative solution. I’m wondering if there is a way to see which library is active in case its available at both locations?