Hi Peter,
RuntimeInstall API's are available for C and MSI.
As a workaround you can call the C library in Delphi.
Other option would be to use Runtime API's that are available for Delphi.
You can get the runtime version using GetInfo() API.
Scope-
- <?xml version="1.0" encoding="UTF-8" ?>
- <haspscope>
- <license_manager hostname="localhost" />
- </haspscope>
Format-
- <?xml version="1.0" encoding="UTF-8" ?>
- <haspformat root="hasp_info">
- <license_manager>
- <element name="hostname" />
- <element name="version" />
- <element name="is_embedded_lm" />
- <element name="ip" />
- </license_manager>
- </haspformat>
This should return the output as below-
- <?xml version="1.0" encoding="UTF-8" ?>
- <hasp_info>
- <license_manager>
- <hostname>xxxxxxxxxx</hostname>
- <version>22.0.1.84341</version>
- <is_embedded_lm>0</is_embedded_lm>
- <ip>127.0.0.1</ip>
- </license_manager>
- <license_manager>
- <hostname>xxxxxxxxxx</hostname>
- <version>22.0.1.84341</version>
- <is_embedded_lm>1</is_embedded_lm>
- <ip>127.0.0.1</ip>
- </license_manager>
- </hasp_info>
Points to note for above implementation-
1. This will return the build number in "version". The same version can be checked in Admin Control Center- "http://localhost:1947/_int_/diag.html"2. <is_embedded_lm> : This tag defines if the version returned is for integrated LM or Admin License Manager. If application folder has hasp_rt.exe and also has runtime installed, then the output will have two sets with different values of this tag-1: The application is using the Integrated LM or the External LM.
0: The application is using the Admin LM.
You can check Toolbox > Help > API Documentation for more tags to use.
Refer to section Licensing API > XML
Tags > Format XML Tags
Regards,
Ashish