Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 1619

Re : Delphi Example of the RuntimeInstall Function (haspds_GetVersion)?

$
0
0
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-
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <haspscope>
  3. <license_manager hostname="localhost" />
  4. </haspscope>
Format-
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <haspformat root="hasp_info">
  3. <license_manager>
  4. <element name="hostname" />
  5. <element name="version" />
  6. <element name="is_embedded_lm" />
  7. <element name="ip" />
  8. </license_manager>
  9. </haspformat>
This should return the output as below-
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <hasp_info>
  3. <license_manager>
  4. <hostname>xxxxxxxxxx</hostname>
  5. <version>22.0.1.84341</version>
  6. <is_embedded_lm>0</is_embedded_lm>
  7. <ip>127.0.0.1</ip>
  8. </license_manager>
  9. <license_manager>
  10. <hostname>xxxxxxxxxx</hostname>
  11. <version>22.0.1.84341</version>
  12. <is_embedded_lm>1</is_embedded_lm>
  13. <ip>127.0.0.1</ip>
  14. </license_manager>
  15. </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







Viewing all articles
Browse latest Browse all 1619

Trending Articles