Book a Demo

Author Topic: Check for installed addins  (Read 3758 times)

FloH

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Check for installed addins
« on: March 16, 2010, 11:58:07 pm »
I am working on an EA addin which should perform certain actions only if the user has MDG Link for DOORS installed. Is there a way to check for installed/loaded addins ?
Best regards,
FloH

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Check for installed addins
« Reply #1 on: March 17, 2010, 01:15:21 am »
Could the Techology Events be of any use? (EA_OnPreActivateTechnology,...)

Geert

FloH

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Check for installed addins
« Reply #2 on: March 17, 2010, 01:58:54 am »
Hi Geert,
unfortunately it seems to be only called once at startup with technologyID being "<global>". Am I doing something wrong? Do you know maybe of any enum object I might "ask"?
Best regards,
FloH

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Check for installed addins
« Reply #3 on: March 17, 2010, 09:41:03 am »
There is no event or method in the automation interface to query other Add-Ins that are currently running in EA.  One way to perhaps detect if MDG DOORS has been installed would be to check the windows registry.

Check for the existence of the following registry key:
[HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins\DOORS]

This doesn't necessarily guarantee the Add-In is running, but hopefully might do the job.

FloH

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Check for installed addins
« Reply #4 on: March 17, 2010, 04:44:06 pm »
This will do for my purpose. Thanks a lot! I totally forgot about this kind of option.